Fix typo in spec

This commit is contained in:
Eric Schultz 2019-11-08 11:24:42 -06:00
parent b84f3fc2ef
commit f76bff6cbb
2 changed files with 2 additions and 1 deletions

View file

@ -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),

View file

@ -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