From 3bbc766abcf313345ec65143da69d14c40ca9248 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Tue, 15 Mar 2011 13:38:13 -0700 Subject: [PATCH] fixed cucumber tests --- features/edits_profile.feature | 19 ++++++++----------- features/support/paths.rb | 2 ++ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/features/edits_profile.feature b/features/edits_profile.feature index 41a326121..86d27dc17 100644 --- a/features/edits_profile.feature +++ b/features/edits_profile.feature @@ -9,35 +9,32 @@ Feature: editing your profile Then I should be on my edit profile page Scenario: editing gender with a textbox - When I fill in "profile_gender" with "F" + When I fill in "profile_gender" with "Fearless" And I press "Update Profile" - Then I should be on my edit profile page + Then I should be on my profile page And I should see "Profile updated" - And the "profile_gender" field should contain "F" + And I should see "Fearless" Scenario: editing name When I fill in "profile_first_name" with "Boba" And I fill in "profile_last_name" with "Fett" And I press "Update Profile" - Then I should be on my edit profile page + Then I should be on my profile page And I should see "Profile updated" - And the "profile_first_name" field should contain "Boba" - And the "profile_last_name" field should contain "Fett" + And I should see "Boba Fett" Scenario: edit bio When I fill in "profile_bio" with "This is a bio" And I press "Update Profile" - Then I should be on my edit profile page + Then I should be on my profile page And I should see "Profile updated" - And the "profile_bio" field should contain "This is a bio" + And I should see "This is a bio" Scenario: change birthday When I select "1986" from "profile_date_year" And I select "November" from "profile_date_month" And I select "30" from "profile_date_day" And I press "Update Profile" - Then I should be on my edit profile page + Then I should be on my profile page And I should see "Profile updated" - And I click on my name in the header - And I follow "view profile" Then I should see "November 30 1986" diff --git a/features/support/paths.rb b/features/support/paths.rb index c0c4d7043..c1a3f7e75 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -15,6 +15,8 @@ module NavigationHelpers send("#{$1.gsub(/\W+/, '_')}_path") when /^my edit profile page$/ edit_profile_path + when /^my profile page$/ + person_path(@me.person) when /^my acceptance form page$/ accept_user_invitation_path(:invitation_token => @me.invitation_token) when /^the requestors profile$/