Skip to content
Extraits de code Groupes Projets
Valider 3c1b5a10 rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Fix cucumber features for text instead of message

parent 1b044556
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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"
......
......@@ -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"
......
......@@ -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>"
......
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter