summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-01 22:05:11 -0700
committermo khan <mo@mokhan.ca>2015-02-01 22:05:11 -0700
commit43b4f0cab83fbeaa5ed51c5c1058d0b4629bc14a (patch)
treea0ad828b41a8767404e64366c48db1608fa9fc64 /spec/features
parent893b13b10a515ab54816b356e659cf302831fd13 (diff)
move translations to separate files.
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/change_password_spec.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/spec/features/change_password_spec.rb b/spec/features/change_password_spec.rb
index 639ac4ac..3c12e4f0 100644
--- a/spec/features/change_password_spec.rb
+++ b/spec/features/change_password_spec.rb
@@ -6,22 +6,23 @@ describe "changing my password", js: true do
before :each do
visit login_path
- within('.form-inline') do
- fill_in('session_username', :with => user.email)
- fill_in('session_password', :with => "password")
+ within(".form-inline") do
+ fill_in("session_username", :with => user.email)
+ fill_in("session_password", :with => "password")
end
click_button("Sign In")
visit my_dashboard_path
click_link("Account")
within(".form-horizontal") do
- fill_in('user_password', :with => "mopass")
- fill_in('user_password_confirmation', :with => "mopass")
+ fill_in("user_password", :with => "mopass")
+ fill_in("user_password_confirmation", :with => "mopass")
end
click_button "Update password"
end
- it "should display a confirmation message" do
- expect(page).to have_content(I18n.translate('passwords.updated'))
+ it "displays a confirmation message" do
+ confirmation_message = I18n.translate("my.passwords.updated")
+ expect(page).to have_content(confirmation_message)
end
end
end