fix failing spec

Another PR introduced a before_action to the controller, so we have to stub that out to avoid the double receiving an unexpected message
This commit is contained in:
Andy Brett
2021-04-08 08:53:35 -07:00
parent 9b3628a4dd
commit c3c482c0fe

View File

@@ -240,6 +240,7 @@ describe Api::V0::ShipmentsController, type: :controller do
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!)