mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove unused count_on_hand setting from spec
This spec doesn't need to set the product's `count_on_hand`. The product comes with a count of 3, but what matters is the count of variants.
This commit is contained in:
@@ -6,11 +6,7 @@ module OpenFoodNetwork
|
||||
render_views
|
||||
|
||||
let(:user) { FactoryBot.create(:user) }
|
||||
let(:product1) do
|
||||
p1 = FactoryBot.create(:product)
|
||||
p1.update_column(:count_on_hand, 10)
|
||||
p1
|
||||
end
|
||||
let(:product1) { FactoryBot.create(:product) }
|
||||
let(:cart) { Cart.create(user: user) }
|
||||
let(:distributor) { FactoryBot.create(:distributor_enterprise) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user