Fix cucumber features for text instead of message

This commit is contained in:
Raphael Sofaer 2011-03-14 11:22:59 -07:00
parent 1b0445563e
commit 3c1b5a10df
4 changed files with 6 additions and 6 deletions

View file

@ -25,7 +25,7 @@ Feature: Close Account
When I sign in as "alice@alice.alice"
And I am on the home page
And I expand the publisher
And I fill in "status_message_fake_message" with "Hi, @{Bob Jones; bob_jones@example.org} long time no see"
And I fill in "status_message_fake_text" with "Hi, @{Bob Jones; bob_jones@example.org} long time no see"
And I press "Share"
And I log out
Then I sign in as "bob@bob.bob"

View file

@ -11,7 +11,7 @@ Feature: commenting
When I sign in as "alice@alice.alice"
And I am on the home page
And I expand the publisher
And I fill in "status_message_fake_message" with "Look at this dog"
And I fill in "status_message_fake_text" with "Look at this dog"
And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload"
And I press "Share"
And I follow "Home"

View file

@ -11,7 +11,7 @@ Feature: posting
And I have an aspect called "Family"
And I am on the home page
And I expand the publisher
When I fill in "status_message_fake_message" with "I am eating a yogurt"
When I fill in "status_message_fake_text" with "I am eating a yogurt"
And I press "Share"
And I follow "Home"
Then I should see "I am eating a yogurt" within ".stream_element"
@ -23,7 +23,7 @@ Feature: posting
And I have an aspect called "Family"
And I am on the home page
And I expand the publisher
When I fill in "status_message_fake_message" with "I am eating a yogurt"
When I fill in "status_message_fake_text" with "I am eating a yogurt"
And I press "Share"
And I follow "Home"
And I hover over the post
@ -42,7 +42,7 @@ Feature: posting
When I follow "PostTo"
And I wait for the ajax to finish
And I expand the publisher
And I fill in "status_message_fake_message" with "I am eating a yogurt"
And I fill in "status_message_fake_text" with "I am eating a yogurt"
And I press "Share"
And I follow "Home"
And I follow "<aspect>"

View file

@ -24,7 +24,7 @@ module NavigationHelpers
when /^my account settings page$/
edit_user_path(@me)
when /^the photo page for "([^\"]*)"'s post "([^\"]*)"$/
photo_path(User.find_by_email($1).posts.find_by_message($2))
photo_path(User.find_by_email($1).posts.find_by_text($2))
when /^"(\/.*)"/
$1
else