mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Fix adjustment spec
The tested adjustment isn't found correctly if it isn't associated to the order...
This commit is contained in:
@@ -35,7 +35,9 @@ module Spree
|
||||
end
|
||||
|
||||
describe "updating an adjustment" do
|
||||
let(:adjustment) { create(:adjustment, adjustable: order, amount: 1100, included_tax: 100) }
|
||||
let(:adjustment) {
|
||||
create(:adjustment, adjustable: order, order: order, amount: 1100, included_tax: 100)
|
||||
}
|
||||
|
||||
it "sets included tax to zero when no tax rate is specified" do
|
||||
spree_put :update, order_id: order.number, id: adjustment.id, adjustment: { label: 'Testing included tax', amount: '110' }, tax_rate_id: ''
|
||||
|
||||
Reference in New Issue
Block a user