fix cucumber failure

This commit is contained in:
maxwell 2011-01-25 14:07:02 -08:00
parent 1b6ae9406e
commit 6b12c55278
2 changed files with 8 additions and 2 deletions

View file

@ -6,7 +6,8 @@ Feature: Change password
And I click on my name in the header And I click on my name in the header
And I follow "account settings" And I follow "account settings"
Then I should be on my account settings page Then I should be on my account settings page
When I fill in "user_password" with "newsecret" When I put in my password in "user_current_password"
And I fill in "user_password" with "newsecret"
And I fill in "user_password_confirmation" with "newsecret" And I fill in "user_password_confirmation" with "newsecret"
And I press "Change Password" And I press "Change Password"
Then I should see "Password Changed" Then I should see "Password Changed"
@ -15,4 +16,4 @@ Feature: Change password
Then I should be on the home page Then I should be on the home page
And I sign in with password "newsecret" And I sign in with password "newsecret"
Then I should be on the aspects page Then I should be on the aspects page

View file

@ -30,3 +30,8 @@ When /^I sign in with password "([^"]*)"$/ do |password|
Given 'I am signed in' Given 'I am signed in'
end end
When /^I put in my password in "([^"]*)"$/ do |field|
When %(I fill in "#{field}" with "#{@me.password}")
end