Fix broken call to log_order which should have been record_order

This commit is contained in:
Rob Harrington
2018-02-02 12:12:42 +11:00
parent 17950ba498
commit fe7b86ff60
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class StandingOrderConfirmJob
end
def process!
log_order(@order)
record_order(@order)
update_payment! if @order.payment_required?
return send_failed_payment_email if @order.errors.present?
@order.process_payments! if @order.payment_required?

View File

@@ -118,7 +118,7 @@ describe StandingOrderConfirmJob do
environment: Rails.env,
preferred_mails_from: 'spree@example.com'
)
expect(job).to receive(:log_order).with(order)
expect(job).to receive(:record_order).with(order)
end
context "when payments need to be processed" do