Fix shipments controller after PR #4675 adapted code to rails 4 finders

This commit is contained in:
Luis Ramos
2020-03-04 14:47:15 +00:00
parent 9980723060
commit 0f726c207f

View File

@@ -214,7 +214,7 @@ describe Api::ShipmentsController, type: :controller do
end
def make_order_contents_fail
expect(Spree::Order).to receive(:find_by_number!) { order }
expect(Spree::Order).to receive(:find_by!).with({ number: order.number }) { order }
expect(order).to receive(:contents) { raise error_message }
end