mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Fix spec fail
This commit is contained in:
@@ -6,7 +6,11 @@ module OpenFoodWeb
|
||||
render_views
|
||||
|
||||
let(:user) { FactoryGirl.create(:user) }
|
||||
let(:product1) { FactoryGirl.create(:product) }
|
||||
let(:product1) do
|
||||
p1 = FactoryGirl.create(:product)
|
||||
p1.update_column(:count_on_hand, 10)
|
||||
p1
|
||||
end
|
||||
let(:cart) { Cart.create(user: user) }
|
||||
let(:distributor) { FactoryGirl.create(:distributor_enterprise) }
|
||||
|
||||
@@ -82,4 +86,4 @@ module OpenFoodWeb
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user