Fixed specs broken by new temp landing page (take 1).

This commit is contained in:
alexs
2013-08-20 11:05:06 +10:00
parent 8f67f385b7
commit 18d60a1643
3 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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'