Skip to content

Commit

Permalink
fix failing spec
Browse files Browse the repository at this point in the history
Another PR introduced a before_action to the controller, so we have to stub that out to avoid the double receiving an unexpected message
  • Loading branch information
andrewpbrett committed Apr 8, 2021
1 parent 9b3628a commit c3c482c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/controllers/api/v0/shipments_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
before do
allow(Spree::Order).to receive(:find_by!) { fee_order }
allow(controller).to receive(:find_and_update_shipment) { }
allow(controller).to receive(:refuse_changing_cancelled_orders) { }
allow(fee_order).to receive(:contents) { contents }
allow(contents).to receive(:add) { }
allow(fee_order).to receive(:recreate_all_fees!)
Expand Down

0 comments on commit c3c482c

Please sign in to comment.