Commit 6b12c552 authored by maxwell's avatar maxwell

fix cucumber failure

parent 1b6ae940
......@@ -6,7 +6,8 @@ Feature: Change password
And I click on my name in the header
And I follow "account settings"
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 press "Change Password"
Then I should see "Password Changed"
......@@ -15,4 +16,4 @@ Feature: Change password
Then I should be on the home page
And I sign in with password "newsecret"
Then I should be on the aspects page
\ No newline at end of file
......@@ -30,3 +30,8 @@ When /^I sign in with password "([^"]*)"$/ do |password|
Given 'I am signed in'
end
When /^I put in my password in "([^"]*)"$/ do |field|
When %(I fill in "#{field}" with "#{@me.password}")
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment