Made OTRS import statistic method public to access it for plausibility check.
This commit is contained in:
parent
c5f348ec82
commit
477fefc4e5
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue