Reload order before updating in Payment callback

This commit is contained in:
Matt-Yorkley
2021-04-27 11:49:09 +01:00
parent 8d19bcdcf2
commit 4be45303bf
2 changed files with 2 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ module Spree
end
def update_order
order.update!
order.reload.update!
end
# Necessary because some payment gateways will refuse payments with

View File

@@ -46,7 +46,7 @@ feature '
)
end
xit "creates the payment, completes the order, and updates payment and shipping states" do
it "creates the payment, completes the order, and updates payment and shipping states" do
login_as_admin_and_visit spree.new_admin_order_payment_path order
expect(page).to have_content "New Payment"