mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Update adjustment unit tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user