From 698d8b35faf63da5e1f7c75e75686aa99222c8bb Mon Sep 17 00:00:00 2001 From: Arun Kumar Mohan Date: Mon, 21 Sep 2020 21:18:32 -0500 Subject: [PATCH] Replace `build` with `build_stubbed` in price sack model specs --- spec/models/calculator/price_sack_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/calculator/price_sack_spec.rb b/spec/models/calculator/price_sack_spec.rb index 83a6ae84fb..2f8cd8f22d 100644 --- a/spec/models/calculator/price_sack_spec.rb +++ b/spec/models/calculator/price_sack_spec.rb @@ -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 }