From: Tom Hughes Date: Wed, 12 Jan 2022 18:23:53 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/3418' X-Git-Tag: live~1800 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/16434ef1ba6b00121d1d45a80e540f2b522612d1?hp=13c70d3195812b8bcdbae4c35f3f9d00eb78c9b9 Merge remote-tracking branch 'upstream/pull/3418' --- diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb index 0a9a82f1c..e979e5f6d 100644 --- a/test/controllers/users_controller_test.rb +++ b/test/controllers/users_controller_test.rb @@ -568,18 +568,18 @@ class UsersControllerTest < ActionDispatch::IntegrationTest user = create(:user, :home_lat => 12.1, :home_lon => 12.1, :description => "test") # Try without logging in - delete user_path(user), :params => { :status => "suspended" } + delete user_path(user) assert_response :forbidden # Now try as a normal user session_for(user) - delete user_path(user), :params => { :status => "suspended" } + delete user_path(user) assert_response :redirect assert_redirected_to :controller => :errors, :action => :forbidden # Finally try as an administrator session_for(create(:administrator_user)) - delete user_path(user), :params => { :status => "suspended" } + delete user_path(user) assert_response :redirect assert_redirected_to :action => :show, :display_name => user.display_name