diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:39:37 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:39:37 +0000 |
commit | 00300e8fdaca07684b107a7ff1134dc17b817b69 (patch) | |
tree | 3760193a3829f255f90f01091859128a7c31db5d /test | |
parent | 792f081125dfdc6b0960683bd2ce99b010618b71 (diff) | |
download | redmine-00300e8fdaca07684b107a7ff1134dc17b817b69.tar.gz redmine-00300e8fdaca07684b107a7ff1134dc17b817b69.zip |
fix source indent of test/integration/sudo_mode_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20352 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/sudo_mode_test.rb | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb index a2ff7cd09..2b1912930 100644 --- a/test/integration/sudo_mode_test.rb +++ b/test/integration/sudo_mode_test.rb @@ -17,12 +17,17 @@ class SudoModeTest < Redmine::IntegrationTest log_user("admin", "admin") get "/users/new" assert_response :success - post "/users", :params => { - :user => { :login => "psmith", :firstname => "Paul", - :lastname => "Smith", :mail => "psmith@somenet.foo", - :language => "en", :password => "psmith09", - :password_confirmation => "psmith09" } + post( + "/users", + :params => { + :user => { + :login => "psmith", :firstname => "Paul", + :lastname => "Smith", :mail => "psmith@somenet.foo", + :language => "en", :password => "psmith09", + :password_confirmation => "psmith09" + } } + ) assert_response 302 user = User.find_by_login("psmith") @@ -34,25 +39,35 @@ class SudoModeTest < Redmine::IntegrationTest expire_sudo_mode! get "/users/new" assert_response :success - post "/users", :params => { - :user => { :login => "psmith", :firstname => "Paul", - :lastname => "Smith", :mail => "psmith@somenet.foo", - :language => "en", :password => "psmith09", - :password_confirmation => "psmith09" } + post( + "/users", + :params => { + :user => { + :login => "psmith", :firstname => "Paul", + :lastname => "Smith", :mail => "psmith@somenet.foo", + :language => "en", :password => "psmith09", + :password_confirmation => "psmith09" + } } + ) assert_response :success assert_nil User.find_by_login("psmith") assert_select 'input[name=?][value=?]', 'user[login]', 'psmith' assert_select 'input[name=?][value=?]', 'user[firstname]', 'Paul' - post "/users", :params => { - :user => { :login => "psmith", :firstname => "Paul", - :lastname => "Smith", :mail => "psmith@somenet.foo", - :language => "en", :password => "psmith09", - :password_confirmation => "psmith09" }, - :sudo_password => 'admin' + post( + "/users", + :params => { + :user => { + :login => "psmith", :firstname => "Paul", + :lastname => "Smith", :mail => "psmith@somenet.foo", + :language => "en", :password => "psmith09", + :password_confirmation => "psmith09" + }, + :sudo_password => 'admin' } + ) assert_response 302 user = User.find_by_login("psmith") @@ -178,15 +193,18 @@ class SudoModeTest < Redmine::IntegrationTest def test_sudo_mode_should_skip_api_requests with_settings :rest_api_enabled => '1' do assert_difference('User.count') do - post '/users.json', :params => { + post( + '/users.json', + :params => { :user => { - :login => 'foo', :firstname => 'Firstname', :lastname => 'Lastname', + :login => 'foo', :firstname => 'Firstname', + :lastname => 'Lastname', :mail => 'foo@example.net', :password => 'secret123', :mail_notification => 'only_assigned' } }, :headers => credentials('admin') - + ) assert_response :created end end |