Use persisted shipment in shipping adjustment test

This commit is contained in:
Matt-Yorkley
2021-02-15 12:36:39 +00:00
parent 57b54637e3
commit eed71d795e

View File

@@ -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)