diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-01-16 08:58:09 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-01-16 08:58:09 +0000 |
commit | 87f6f6f70519ca387c4a033174e82ee4e334d980 (patch) | |
tree | 4287366b76346449d470c1b61158992ae0776df6 /spec/controllers | |
parent | a2b26577220643a865212cb297a2bf12338176ea (diff) | |
parent | 3bd306ddfa97562ad81789c4cdde17901f8909eb (diff) | |
download | gitlab-ce-87f6f6f70519ca387c4a033174e82ee4e334d980.tar.gz |
Merge branch 'fix-403-page-is-rendered-but-404-is-the-response' into 'master'
Show the correct error page when access is denied
Closes #55110
See merge request gitlab-org/gitlab-ce!23932
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/application_controller_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 43f561f7a25..c290acb72aa 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -519,12 +519,14 @@ describe ApplicationController do get :index expect(response).to have_gitlab_http_status(404) + expect(response).to render_template('errors/not_found') end it 'renders a 403 when a message is passed to access denied' do get :index, params: { message: 'None shall pass' } expect(response).to have_gitlab_http_status(403) + expect(response).to render_template('errors/access_denied') end it 'renders a status passed to access denied' do |