From 4e8f817ad502a222644b15eb6e638a92c651c338 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 3 Dec 2020 13:19:40 +0000 Subject: fix source indent of test/integration/admin_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20554 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/admin_test.rb | 16 ++++++++++++---- 1 file 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 -- cgit v1.2.3