mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Use persisted shipment in shipping adjustment test
This commit is contained in:
@@ -382,7 +382,10 @@ describe Spree::Shipment do
|
||||
end
|
||||
|
||||
context "ensure_correct_adjustment" do
|
||||
before { allow(shipment).to receive(:reload) }
|
||||
before do
|
||||
shipment.save
|
||||
allow(shipment).to receive(:reload)
|
||||
end
|
||||
|
||||
it "should create adjustment when not present" do
|
||||
allow(shipment).to receive_messages(selected_shipping_rate_id: 1)
|
||||
|
||||
Reference in New Issue
Block a user