summaryrefslogtreecommitdiff
path: root/features/steps/profile/profile.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-11-04 16:47:37 -0500
committerRobert Speicher <rspeicher@gmail.com>2012-11-04 16:47:37 -0500
commit89d9319a791fd49dea734414bdbfe840816fb14c (patch)
tree2b1252f127babce34d9e015e4e82361d8178193a /features/steps/profile/profile.rb
parentf8e27b92bfe12bb3bf6e98bcaa9078941eaf7823 (diff)
downloadgitlab-ce-89d9319a791fd49dea734414bdbfe840816fb14c.tar.gz
Fix rendered action for password change failure
Closes #1912
Diffstat (limited to 'features/steps/profile/profile.rb')
-rw-r--r--features/steps/profile/profile.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb
index 605936ba55e..efab1010481 100644
--- a/features/steps/profile/profile.rb
+++ b/features/steps/profile/profile.rb
@@ -28,6 +28,16 @@ class Profile < Spinach::FeatureSteps
click_button "Save"
end
+ When 'I unsuccessfully change my password' do
+ fill_in "user_password", with: "password"
+ fill_in "user_password_confirmation", with: "confirmation"
+ click_button "Save"
+ end
+
+ Then "I should see a password error message" do
+ page.should have_content "Password doesn't match confirmation"
+ end
+
And 'I should be redirected to sign in page' do
current_path.should == new_user_session_path
end