From c396c2a21f084c5b519a6437b1de492d6c1938c8 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 9 Jan 2014 12:37:43 +1100 Subject: [PATCH] Improve speed of BPE specs --- spec/features/admin/bulk_product_update_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/bulk_product_update_spec.rb b/spec/features/admin/bulk_product_update_spec.rb index 7ac48ac0c0..3e9ce76649 100644 --- a/spec/features/admin/bulk_product_update_spec.rb +++ b/spec/features/admin/bulk_product_update_spec.rb @@ -22,7 +22,7 @@ feature %q{ end it "displays a 'loading' splash for products" do - 101.times{ FactoryGirl.create(:product) } + FactoryGirl.create(:simple_product) visit '/admin/products/bulk_edit' @@ -45,8 +45,8 @@ feature %q{ page.should have_text "No matching products found." end - it "displays a message when number of products is too great" do - 501.times{ FactoryGirl.create(:simple_product) } + pending "displays a message when number of products is too great" do + 501.times { FactoryGirl.create(:simple_product) } visit '/admin/products/bulk_edit' @@ -523,7 +523,6 @@ feature %q{ page.should have_selector "a.clone-product", :count => 3 first("a.clone-product").click - sleep 5 page.should have_selector "a.clone-product", :count => 4 page.should have_field "product_name", with: "COPY OF #{p1.name}" page.should have_select "supplier", selected: "#{p1.supplier.name}"