2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-03-01 08:18:40 +00:00
|
|
|
RSpec.shared_examples 'TicketEnqueuesTicketUserTicketCounterJob', type: :job do
|
|
|
|
subject { create(described_class.name.underscore) }
|
|
|
|
|
|
|
|
let(:customer) { create('customer') }
|
|
|
|
|
|
|
|
it 'enqueues a job for the customer' do
|
|
|
|
subject.customer = customer
|
|
|
|
expect { subject.save }.to have_enqueued_job(TicketUserTicketCounterJob)
|
|
|
|
end
|
|
|
|
end
|