diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-03 13:19:40 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-03 13:19:40 +0000 |
commit | 4e8f817ad502a222644b15eb6e638a92c651c338 (patch) | |
tree | 6d0267f3eff85d5277e6e854b307b9b9a24009c9 | |
parent | 3f1bb5c8b2c3f6b53b3176abda65d25c1549aa79 (diff) | |
download | redmine-4e8f817ad502a222644b15eb6e638a92c651c338.tar.gz redmine-4e8f817ad502a222644b15eb6e638a92c651c338.zip |
fix source indent of test/integration/admin_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20554 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/integration/admin_test.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb index 21a52d0f1..eed45ddde 100644 --- a/test/integration/admin_test.rb +++ b/test/integration/admin_test.rb @@ -33,7 +33,9 @@ class AdminTest < Redmine::IntegrationTest get "/users/new" assert_response :success - post "/users", :params => { + post( + "/users", + :params => { :user => { :login => "psmith", :firstname => "Paul", :lastname => "Smith", :mail => "psmith@somenet.foo", @@ -41,7 +43,7 @@ class AdminTest < Redmine::IntegrationTest :password_confirmation => "psmith09" } } - + ) user = User.find_by_login("psmith") assert_kind_of User, user assert_redirected_to "/users/#{ user.id }/edit" @@ -50,24 +52,30 @@ class AdminTest < Redmine::IntegrationTest assert_kind_of User, logged_user assert_equal "Paul", logged_user.firstname - put "/users/#{user.id}", :params => { + put( + "/users/#{user.id}", + :params => { :id => user.id, :user => { :status => User::STATUS_LOCKED } } + ) assert_redirected_to "/users/#{ user.id }/edit" locked_user = User.try_to_login("psmith", "psmith09") assert_nil locked_user end test "Add a user as an anonymous user should fail" do - post '/users', :params => { + post( + '/users', + :params => { :user => { :login => 'psmith', :firstname => 'Paul', :password => "psmith09", :password_confirmation => "psmith09" } } + ) assert_response :redirect assert_redirected_to "/login?back_url=http%3A%2F%2Fwww.example.com%2Fusers" end |