calls_stats_ticket_reopen_log_examples.rb 422 B

1234567891011121314
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. RSpec.shared_examples 'TicketCallsStatsTicketReopenLog' do
  3. it 'can only be loaded for Ticket' do
  4. expect(described_class).to eq Ticket
  5. end
  6. it 'calls Stats::TicketReopen.log' do
  7. allow(Stats::TicketReopen).to receive(:log)
  8. create(described_class.name.underscore)
  9. expect(Stats::TicketReopen).to have_received(:log)
  10. end
  11. end