diff options
author | Luke Bennett <lbennett@gitlab.com> | 2018-12-19 12:04:24 +0000 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2019-01-15 20:42:10 +0000 |
commit | 3bd306ddfa97562ad81789c4cdde17901f8909eb (patch) | |
tree | 63b7a44612690c2cbf41b9a37faa5a8d095a7424 /spec/features/projects/pipelines | |
parent | 8fecf976cdf693cec2b032d243c333c5465c8a12 (diff) | |
download | gitlab-ce-3bd306ddfa97562ad81789c4cdde17901f8909eb.tar.gz |
Show the correct error page when access is denied
Diffstat (limited to 'spec/features/projects/pipelines')
-rw-r--r-- | spec/features/projects/pipelines/pipeline_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb index 4706c28bb3d..3192c9ffad4 100644 --- a/spec/features/projects/pipelines/pipeline_spec.rb +++ b/spec/features/projects/pipelines/pipeline_spec.rb @@ -477,10 +477,11 @@ describe 'Pipeline', :js do end context 'when accessing failed jobs page' do - it 'fails to access the page' do - subject + it 'renders a 404 page' do + requests = inspect_requests { subject } - expect(page).to have_title('Access Denied') + expect(page).to have_title('Not Found') + expect(requests.first.status_code).to eq(404) end end end |