From d480e96d7a8622e9cd0058f3242f390bdf5385f6 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 16 Oct 2013 17:38:39 +1100 Subject: [PATCH] Do not add an extra product which confuses other tests --- spec/features/admin/bulk_product_update_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/admin/bulk_product_update_spec.rb b/spec/features/admin/bulk_product_update_spec.rb index 9141eb2783..41025a0666 100644 --- a/spec/features/admin/bulk_product_update_spec.rb +++ b/spec/features/admin/bulk_product_update_spec.rb @@ -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