Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oleglukashev/f83887dacbfd21abd9ea51c8068311ae to your computer and use it in GitHub Desktop.
Save oleglukashev/f83887dacbfd21abd9ea51c8068311ae to your computer and use it in GitHub Desktop.
context 'send email when loaded' do
let(:params) { {ids: {'1': true, '2': true}} }
let(:resource) { create(:card_load, id: 1, loaded: false) }
let(:resource2) { create(:card_load, id: 2, loaded: false) }
it do
should enqueue_job(ActionMailer::DeliveryJob).
with('CardLoadMailer', 'loaded', any_args).exactly(:twice)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment