mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Reload order before updating in Payment callback
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user