diff options
author | Tony Rom <thetonyrom@gmail.com> | 2018-01-10 20:05:34 +0300 |
---|---|---|
committer | Tony Rom <thetonyrom@gmail.com> | 2018-01-10 20:05:34 +0300 |
commit | 7ed08fcd5db058500b3092fd94791e9bd8a29bb7 (patch) | |
tree | 2dd5d99eddef5715b634d9a630c7f354b5b3af87 /spec/requests | |
parent | fd88b0ca56b3a4230902f76a7b049228e53e6bb0 (diff) | |
download | gitlab-ce-7ed08fcd5db058500b3092fd94791e9bd8a29bb7.tar.gz |
Fix style
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/merge_requests_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/merge_requests_spec.rb b/spec/requests/api/merge_requests_spec.rb index 4278e32dc78..aeee2fbc092 100644 --- a/spec/requests/api/merge_requests_spec.rb +++ b/spec/requests/api/merge_requests_spec.rb @@ -546,6 +546,12 @@ describe API::MergeRequests do expect(response).to have_gitlab_http_status(200) expect(response).to match_response_schema('public_api/v4/pipelines') end + + it 'returns 404 if MR does not exist' do + get api("/projects/#{project.id}/merge_requests/777/pipelines") + + expect(response).to have_gitlab_http_status(404) + end end context 'when unauthorized' do |