Update adjustment unit tests

This commit is contained in:
Matt-Yorkley
2021-10-05 22:40:37 +01:00
parent 65f08ee8f4
commit 19daf1d2fb

View File

@@ -21,10 +21,11 @@ module Spree
context "#update_adjustment!" do
context "when originator present" do
let(:originator) { instance_double(EnterpriseFee, compute_amount: 10.0) }
let(:adjustable) { instance_double(LineItem) }
before do
allow(adjustment).to receive_messages originator: originator, label: 'adjustment',
amount: 0
adjustable: adjustable, amount: 0
end
it "should do nothing when closed" do