Replace build with build_stubbed in price sack model specs

This commit is contained in:
Arun Kumar Mohan
2020-09-21 21:18:32 -05:00
parent 5c25d92354
commit 698d8b35fa

View File

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