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:
Maikel Linke
2018-06-27 11:41:55 +10:00
parent 306bfa1944
commit b7de80dd7f

View File

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