summaryrefslogtreecommitdiffstats
path: root/test/functional/users_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r--test/functional/users_controller_test.rb23
1 files changed, 13 insertions, 10 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 40d842607..e753c3873 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -682,16 +682,19 @@ class UsersControllerTest < Redmine::ControllerTest
end
def test_update_without_generate_password_should_not_change_password
- put :update, :params => {
- :id => 2, :user => {
- :firstname => 'changed',
- :generate_password => '0',
- :password => '',
- :password_confirmation => ''
- },
- :send_information => '1'
- }
-
+ put(
+ :update,
+ :params => {
+ :id => 2,
+ :user => {
+ :firstname => 'changed',
+ :generate_password => '0',
+ :password => '',
+ :password_confirmation => ''
+ },
+ :send_information => '1'
+ }
+ )
user = User.find(2)
assert_equal 'changed', user.firstname
assert user.check_password?('jsmith')