diff --git a/spec/lib/update/update_recurring_donations_spec.rb b/spec/lib/update/update_recurring_donations_spec.rb index 2b2ad24c..53fa9b5b 100644 --- a/spec/lib/update/update_recurring_donations_spec.rb +++ b/spec/lib/update/update_recurring_donations_spec.rb @@ -97,7 +97,7 @@ describe UpdateRecurringDonations do expect { result = UpdateRecurringDonations.update_amount(recurring_donation, source_token.token, 1000) - }.to have_enqueue_with(RecurringDonationChangeAmountJob).with(recurring_donation, orig_rd['amount']) + }.to have_enqueued_job(RecurringDonationChangeAmountJob).with(recurring_donation, orig_rd['amount']) expectations = { donation: orig_donation.merge(amount: 1000, card_id: source_token.tokenizable.id), diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 1234a7e8..1b4a0d57 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -16,6 +16,7 @@ require 'support/factory_bot' require 'support/date_time' require 'timecop' require 'support/contexts' +include Expect # Requires supporting ruby files with custom matchers and macros, etc, in # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are # run as spec files by default. This means that files in spec/support that end