From 18d60a16431d183fe0fa42f8832cba8a333f812b Mon Sep 17 00:00:00 2001 From: alexs Date: Tue, 20 Aug 2013 11:05:06 +1000 Subject: [PATCH] Fixed specs broken by new temp landing page (take 1). --- spec/features/admin/cms_spec.rb | 2 +- spec/features/consumer/add_to_cart_spec.rb | 4 ++-- spec/support/request/authentication_workflow.rb | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/features/admin/cms_spec.rb b/spec/features/admin/cms_spec.rb index 8faa8c37fb..aec64cf291 100644 --- a/spec/features/admin/cms_spec.rb +++ b/spec/features/admin/cms_spec.rb @@ -29,7 +29,7 @@ feature %q{ login_to_consumer_section visit cms_admin_path page.should_not have_content "ComfortableMexicanSofa" - page.should have_content "Home" + page.should have_content "WHERE WOULD YOU LIKE TO SHOP?" end end diff --git a/spec/features/consumer/add_to_cart_spec.rb b/spec/features/consumer/add_to_cart_spec.rb index ffcc8c3e12..e5025aff5d 100644 --- a/spec/features/consumer/add_to_cart_spec.rb +++ b/spec/features/consumer/add_to_cart_spec.rb @@ -29,8 +29,8 @@ feature %q{ scenario "adding the first product to the cart" do # Given a product, some distributors and a defined shipping cost - d1 = create(:distributor_enterprise) - d2 = create(:distributor_enterprise) + d1 = create(:distributor_enterprise, :name => "Green Grass") + d2 = create(:distributor_enterprise, :name => "AusFarmers United") create(:product, :distributors => [d2]) p = create(:product, :price => 12.34) create(:product_distribution, :product => p, :distributor => d1) diff --git a/spec/support/request/authentication_workflow.rb b/spec/support/request/authentication_workflow.rb index 319890134c..b519b297c7 100644 --- a/spec/support/request/authentication_workflow.rb +++ b/spec/support/request/authentication_workflow.rb @@ -43,8 +43,7 @@ module AuthenticationWorkflow user.spree_roles << user_role - visit spree.root_path - click_link 'Login' + visit spree.login_path fill_in 'spree_user_email', :with => 'someone@ofw.org' fill_in 'spree_user_password', :with => 'passw0rd' click_button 'Login'