Skip to content

Commit cce35c5

Browse files
Fix reference to order updater method
Some order updater methods were renamed as part of the in-memory order updater work. This caused this test to fail because the instance double wasn't set up for the new method.
1 parent 685c7fa commit cce35c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/spec/requests/checkouts_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def post_persist_address
324324

325325
before do
326326
allow(Spree::OrderUpdater).to receive(:new).and_return(updater_instance)
327-
allow(updater_instance).to receive(:update_payment_state).and_raise(Spree::Core::GatewayError.new('Invalid something or other.'))
327+
allow(updater_instance).to receive(:recalculate_payment_state).and_raise(Spree::Core::GatewayError.new('Invalid something or other.'))
328328
patch update_checkout_path(state: order.state, order: { bill_address_attributes: address_params })
329329
end
330330

0 commit comments

Comments
 (0)