diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 21:16:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 11:16:40 +0900 |
commit | aef0051fd0723ff03175a8851497056ed07d1a83 (patch) | |
tree | 298dafc17d16340904e8eea4d66600335b1a0e6e /spec/controllers/settings | |
parent | bd1d57c2303b7a5df1af749d8851c9364a044e77 (diff) |
Enable Rubocop HTTP status rules (#23717)
Diffstat (limited to 'spec/controllers/settings')
-rw-r--r-- | spec/controllers/settings/applications_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/controllers/settings/sessions_controller_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/settings/applications_controller_spec.rb b/spec/controllers/settings/applications_controller_spec.rb index 35ad4b2e7..33d874d10 100644 --- a/spec/controllers/settings/applications_controller_spec.rb +++ b/spec/controllers/settings/applications_controller_spec.rb @@ -32,7 +32,7 @@ describe Settings::ApplicationsController do app.update!(owner: nil) get :show, params: { id: app.id } - expect(response.status).to eq 404 + expect(response).to have_http_status 404 end end diff --git a/spec/controllers/settings/sessions_controller_spec.rb b/spec/controllers/settings/sessions_controller_spec.rb index 0e312c5a6..59c18889e 100644 --- a/spec/controllers/settings/sessions_controller_spec.rb +++ b/spec/controllers/settings/sessions_controller_spec.rb @@ -24,7 +24,7 @@ describe Settings::SessionsController do let(:id) { session_activation.id + 1000 } it 'destroys session activation' do - is_expected.to have_http_status :not_found + is_expected.to have_http_status 404 end end end |