diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-06 12:20:12 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-06 12:20:12 +0300 |
commit | 80b3dcc777c72ee1853b4228baf6310ccd5e44d8 (patch) | |
tree | e0adc2e6d8ebcca785df28438b30a37566f595a5 /spec/requests/api/jobs_spec.rb | |
parent | d4154ef30f52b30054e8e5d9bbf172d8700e8049 (diff) |
Extract job artifacts API code to a separate file
Diffstat (limited to 'spec/requests/api/jobs_spec.rb')
-rw-r--r-- | spec/requests/api/jobs_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb index dd2aed38412..2d7cc1a1798 100644 --- a/spec/requests/api/jobs_spec.rb +++ b/spec/requests/api/jobs_spec.rb @@ -321,8 +321,9 @@ describe API::Jobs do get_for_ref end - it 'gives 401' do - expect(response).to have_http_status(401) + it 'does not find a resource in a private project' do + expect(project).to be_private + expect(response).to have_http_status(404) end end |