Fix some typos!
This commit is contained in:
parent
094af949a5
commit
b84f3fc2ef
2 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,7 @@ module InsertRecurringDonation
|
||||||
|
|
||||||
InsertDonation.update_donation_keys(result) if result['payment']
|
InsertDonation.update_donation_keys(result) if result['payment']
|
||||||
|
|
||||||
DonorDirectDebitNotificationJob.perform_later(Donation.find(result['donation']['id']), locale_for_supporter(result['donation']['supporter_id']);
|
DonorDirectDebitNotificationJob.perform_later(Donation.find(result['donation']['id']), locale_for_supporter(result['donation']['supporter_id']));
|
||||||
|
|
||||||
WeMoveExecuteForDonationsJob.perform_later(result['donation'])
|
WeMoveExecuteForDonationsJob.perform_later(result['donation'])
|
||||||
|
|
||||||
|
|
|
@ -370,8 +370,9 @@ RSpec.shared_context :shared_rd_donation_value_context do
|
||||||
end
|
end
|
||||||
|
|
||||||
def before_each_sepa_success
|
def before_each_sepa_success
|
||||||
expect {
|
|
||||||
expect(InsertDonation).to receive(:insert_donation).and_wrap_original do |m, *args|
|
expect(InsertDonation).to receive(:insert_donation).and_wrap_original do |m, *args|
|
||||||
|
expect {
|
||||||
expect {
|
expect {
|
||||||
result = m.call(*args)
|
result = m.call(*args)
|
||||||
}.to have_enqueued_job(DirectDebitCreateJob).with(result.id, supporter.local)
|
}.to have_enqueued_job(DirectDebitCreateJob).with(result.id, supporter.local)
|
||||||
|
|
Loading…
Reference in a new issue