2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2021-03-01 08:18:40 +00:00
|
|
|
RSpec.shared_examples 'TicketCallsStatsTicketReopenLog' do
|
|
|
|
|
|
|
|
it 'can only be loaded for Ticket' do
|
|
|
|
expect(described_class).to eq Ticket
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'calls Stats::TicketReopen.log' do
|
|
|
|
allow(Stats::TicketReopen).to receive(:log)
|
|
|
|
create(described_class.name.underscore)
|
|
|
|
expect(Stats::TicketReopen).to have_received(:log)
|
|
|
|
end
|
|
|
|
end
|