From 863236b8271b1116ea2fca8d721b9dc9001ac219 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Mon, 29 Jul 2013 09:47:28 +1000 Subject: [PATCH] Remove speculative test --- spec/features/consumer/suppliers_spec.rb | 32 ------------------------ 1 file changed, 32 deletions(-) diff --git a/spec/features/consumer/suppliers_spec.rb b/spec/features/consumer/suppliers_spec.rb index f960a6e444..2dee0f1a5f 100644 --- a/spec/features/consumer/suppliers_spec.rb +++ b/spec/features/consumer/suppliers_spec.rb @@ -40,38 +40,6 @@ feature %q{ page.should have_selector "#supplier_filter input[value='Browse All Suppliers']" end -=begin - scenario "viewing a list of suppliers (with active products) in the sidebar when there's more than 5" do - # Given some suppliers - s1 = create(:supplier_enterprise) - s2 = create(:supplier_enterprise) - s3 = create(:supplier_enterprise) - s4 = create(:supplier_enterprise) - s5 = create(:supplier_enterprise) - s6 = create(:supplier_enterprise) - - # And at least 5 of those suppliers have a product - create(:product, :supplier => s1) - create(:product, :supplier => s2) - create(:product, :supplier => s3) - create(:product, :supplier => s4) - create(:product, :supplier => s5) - create(:product, :supplier => s6) - - # When I go to the home page - visit spree.root_path - - # Then I should see a list containing 5 suppliers that have products in stock - page.should have_selector '#supplier_filter li a', :count => 5 - - # And I should see '1 more' - page.should have_selector '#supplier_filter span.filter_more', :text => '1 more' - - # And I should see a browse suppliers button - page.should have_selector "#supplier_filter input[value='Browse All Suppliers']" - end -=end - scenario "viewing a list of all suppliers" do # Given some suppliers s1 = create(:supplier_enterprise)