Do not add an extra product which confuses other tests

This commit is contained in:
Rohan Mitchell
2013-10-16 17:38:39 +11:00
parent e29497c5b4
commit d480e96d7a

View File

@@ -442,7 +442,7 @@ feature %q{
let(:d2) { create(:distributor_enterprise, name: 'Another Distributor') }
let!(:product_supplied) { create(:product, supplier: s1, price: 10.0, on_hand: 6) }
let!(:product_not_supplied) { create(:product, supplier: s3) }
let!(:product_supplied_inactive) { create(:product, supplier: s1, price: 10.0, on_hand: 6, available_on: 1.week.from_now) }
let(:product_supplied_inactive) { create(:product, supplier: s1, price: 10.0, on_hand: 6, available_on: 1.week.from_now) }
before(:each) do
@enterprise_user = create_enterprise_user
@@ -468,6 +468,8 @@ feature %q{
end
it "shows inactive products that I supply" do
product_supplied_inactive
visit '/admin/products/bulk_edit'
page.should have_field 'product_name', with: product_supplied_inactive.name