diff --git a/lib/import/otrs/import_stats.rb b/lib/import/otrs/import_stats.rb index e1c437501..59c7644bd 100644 --- a/lib/import/otrs/import_stats.rb +++ b/lib/import/otrs/import_stats.rb @@ -21,8 +21,6 @@ module Import } end - private - def statistic # check cache @@ -37,6 +35,8 @@ module Import statistic end + private + def base_done ::Group.count + ::Ticket::State.count + ::Ticket::Priority.count end diff --git a/spec/import/otrs/import_stats_examples.rb b/spec/import/otrs/import_stats_examples.rb index e21cfb5c7..7cbb7ea59 100644 --- a/spec/import/otrs/import_stats_examples.rb +++ b/spec/import/otrs/import_stats_examples.rb @@ -2,4 +2,7 @@ RSpec.shared_examples 'Import::OTRS::ImportStats' do it 'responds to current_state' do expect(described_class).to respond_to('current_state') end + it 'responds to statistic' do + expect(described_class).to respond_to('statistic') + end end