Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Rom <thetonyrom@gmail.com>2018-01-10 20:05:34 +0300
committerTony Rom <thetonyrom@gmail.com>2018-01-10 20:05:34 +0300
commit7ed08fcd5db058500b3092fd94791e9bd8a29bb7 (patch)
tree2dd5d99eddef5715b634d9a630c7f354b5b3af87 /spec/requests/api/merge_requests_spec.rb
parentfd88b0ca56b3a4230902f76a7b049228e53e6bb0 (diff)
Fix style
Diffstat (limited to 'spec/requests/api/merge_requests_spec.rb')
-rw-r--r--spec/requests/api/merge_requests_spec.rb6
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