trabajo-afectivo/spec/models/ticket/calls_stats_ticket_reopen_log_examples.rb

15 lines
422 B
Ruby
Raw Permalink Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
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