From 3c1b5a10dfb354262b2e3e3c852e14db9f2f520a Mon Sep 17 00:00:00 2001 From: Raphael Sofaer <raphael@joindiaspora.com> Date: Mon, 14 Mar 2011 11:22:59 -0700 Subject: [PATCH] Fix cucumber features for text instead of message --- features/closes_account.feature | 2 +- features/comments.feature | 2 +- features/posts.feature | 6 +++--- features/support/paths.rb | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/features/closes_account.feature b/features/closes_account.feature index 2b491be0e4..b83bf1f74d 100644 --- a/features/closes_account.feature +++ b/features/closes_account.feature @@ -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" diff --git a/features/comments.feature b/features/comments.feature index 14b0efdad1..0f8246c7f7 100644 --- a/features/comments.feature +++ b/features/comments.feature @@ -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" diff --git a/features/posts.feature b/features/posts.feature index 70f7bfa714..45fc98c561 100644 --- a/features/posts.feature +++ b/features/posts.feature @@ -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>" diff --git a/features/support/paths.rb b/features/support/paths.rb index b458d4e667..c0c4d70439 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -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 -- GitLab