From 477fefc4e5114fe4cd8ac8b9b6aedd2bfe99d635 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 9 Dec 2016 16:12:39 +0100 Subject: [PATCH] Made OTRS import statistic method public to access it for plausibility check. --- lib/import/otrs/import_stats.rb | 4 ++-- spec/import/otrs/import_stats_examples.rb | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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