Fix spec fail

This commit is contained in:
Rohan Mitchell
2013-09-30 15:13:02 +10:00
parent 935229fa09
commit 8353413c4a

View File

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