From 14fdc7d3aef320aebb30e6b23e84195d09d7c24b Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 13 May 2015 14:27:18 +1000 Subject: [PATCH] Move home spec to shops spec --- spec/features/consumer/{home_spec.rb => shops_spec.rb} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename spec/features/consumer/{home_spec.rb => shops_spec.rb} (95%) diff --git a/spec/features/consumer/home_spec.rb b/spec/features/consumer/shops_spec.rb similarity index 95% rename from spec/features/consumer/home_spec.rb rename to spec/features/consumer/shops_spec.rb index 128b1f734f..faeff9c37d 100644 --- a/spec/features/consumer/home_spec.rb +++ b/spec/features/consumer/shops_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -feature 'Home', js: true do +feature 'Shops', js: true do include AuthenticationWorkflow include UIComponentHelper @@ -13,7 +13,7 @@ feature 'Home', js: true do let!(:er) { create(:enterprise_relationship, parent: distributor, child: producer) } before do - visit "/" + visit shops_path end it "shows hubs" do @@ -28,7 +28,7 @@ feature 'Home', js: true do it "should grey out hubs that are not in an order cycle" do create(:simple_product, distributors: [d1, d2]) - visit root_path + visit shops_path page.should have_selector 'hub.inactive' page.should have_selector 'hub.inactive', text: d2.name end