mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace build with build_stubbed in price sack model specs
This commit is contained in:
@@ -8,7 +8,7 @@ describe Calculator::PriceSack do
|
||||
calculator.preferred_discount_amount = 1
|
||||
calculator
|
||||
end
|
||||
let(:line_item) { build(:line_item, price: price, quantity: 2) }
|
||||
let(:line_item) { build_stubbed(:line_item, price: price, quantity: 2) }
|
||||
|
||||
context 'when the order amount is below preferred minimal' do
|
||||
let(:price) { 2 }
|
||||
|
||||
Reference in New Issue
Block a user