about summary refs log tree commit diff
path: root/spec/controllers/admin/users
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 21:16:40 -0500
committerGitHub <noreply@github.com>2023-02-20 11:16:40 +0900
commitaef0051fd0723ff03175a8851497056ed07d1a83 (patch)
tree298dafc17d16340904e8eea4d66600335b1a0e6e /spec/controllers/admin/users
parentbd1d57c2303b7a5df1af749d8851c9364a044e77 (diff)
Enable Rubocop HTTP status rules (#23717)
Diffstat (limited to 'spec/controllers/admin/users')
-rw-r--r--spec/controllers/admin/users/roles_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/admin/users/roles_controller.rb b/spec/controllers/admin/users/roles_controller.rb
index bd6a3fa67..9fa8aef41 100644
--- a/spec/controllers/admin/users/roles_controller.rb
+++ b/spec/controllers/admin/users/roles_controller.rb
@@ -26,7 +26,7 @@ describe Admin::Users::RolesController do
       let(:previous_role) { UserRole.create(name: 'Baz', permissions: UserRole::FLAGS[:administrator], position: 100) }
 
       it 'returns http forbidden' do
-        expect(response).to have_http_status(:forbidden)
+        expect(response).to have_http_status(403)
       end
     end
   end
@@ -74,7 +74,7 @@ describe Admin::Users::RolesController do
       end
 
       it 'returns http forbidden' do
-        expect(response).to have_http_status(:forbidden)
+        expect(response).to have_http_status(403)
       end
     end
   end