calls_stats_ticket_reopen_log_examples.rb 345 B

123456789101112
  1. RSpec.shared_examples 'TicketCallsStatsTicketReopenLog' do
  2. it 'can only be loaded for Ticket' do
  3. expect(described_class).to eq Ticket
  4. end
  5. it 'calls Stats::TicketReopen.log' do
  6. allow(Stats::TicketReopen).to receive(:log)
  7. create(described_class.name.underscore)
  8. expect(Stats::TicketReopen).to have_received(:log)
  9. end
  10. end