sla_ticket_rebuild_escalation_job_spec.rb 400 B

123456789101112131415
  1. require 'rails_helper'
  2. RSpec.describe SlaTicketRebuildEscalationJob, type: :job do
  3. it 'clears the SLA Cache' do
  4. allow(Cache).to receive(:delete)
  5. expect(Cache).to receive(:delete).with('SLA::List::Active')
  6. described_class.perform_now
  7. end
  8. it 'triggers Ticket::Escalation rebuild' do
  9. expect(Ticket::Escalation).to receive(:rebuild_all)
  10. described_class.perform_now
  11. end
  12. end