Fix RuboCop offense Layout/FirstHashElementIndentation (#36919).

git-svn-id: https://svn.redmine.org/redmine/trunk@21696 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2022-06-30 09:30:03 +00:00
parent 9cebd79b4e
commit 856f104031
2 changed files with 39 additions and 30 deletions

View File

@@ -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')