mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Replace build with build_stubbed in flat percent item total specs
This commit is contained in:
@@ -2,7 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe Calculator::FlatPercentItemTotal do
|
||||
let(:calculator) { Calculator::FlatPercentItemTotal.new }
|
||||
let(:line_item) { build(:line_item, price: 10, quantity: 1) }
|
||||
let(:line_item) { build_stubbed(:line_item, price: 10, quantity: 1) }
|
||||
|
||||
before { allow(calculator).to receive_messages preferred_flat_percent: 10 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user