From 58bc4f73876def022d968a0c902def8d63d32aac Mon Sep 17 00:00:00 2001 From: Dan Goldenberg Date: Mon, 31 Jan 2011 16:56:54 -0800 Subject: [PATCH] fixed the viewing a requests profile scenario --- features/manages_contact_requests.feature | 8 ++++---- features/step_definitions/custom_web_steps.rb | 2 +- features/support/paths.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/features/manages_contact_requests.feature b/features/manages_contact_requests.feature index 8075070ea..b45d1d34e 100644 --- a/features/manages_contact_requests.feature +++ b/features/manages_contact_requests.feature @@ -13,13 +13,13 @@ Feature: managing contact requests Then I should see "new request!" @javascript - Scenario: viewing a request's profile + Scenario: viewing a requests profile When I am on the aspects manage page Then I should see "1" within "#notification_badge" When I click on the contact request - And I wait for the request's profile page to load - Then I should be on the requestor's profile page - And I should see "You have an incoming request from this person" + And I wait for the requestors profile page to load + Then I should be on the requestors profile + And I should see "wants to share with you" @javascript Scenario: accepting a contact request diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 5ccf85ef5..611e55e6a 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -51,7 +51,7 @@ When /^I wait for the aspects page to load$/ do wait_until { current_path == aspects_path } end -When /^I wait for the request's profile page to load$/ do +When /^I wait for the requestors profile page to load$/ do wait_until { current_path == person_path(Request.where(:recipient_id => @me.person.id).first.sender) } end diff --git a/features/support/paths.rb b/features/support/paths.rb index a91ce5955..0265ce7c9 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -11,7 +11,7 @@ module NavigationHelpers edit_person_path(@me.person) when /^my acceptance form page$/ accept_user_invitation_path(:invitation_token => @me.invitation_token) - when /^the requestor's profile page$/ + when /^the requestors profile$/ person_path(Request.where(:recipient_id => @me.person.id).first.sender) when /^"([^\"]*)"'s page$/ person_path(User.find_by_email($1).person)