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:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-13 17:17:59 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-13 17:17:59 +0300
commit97338496188add9ec8d192c7e78f6a6040befffa (patch)
tree41fdd8be6779fa2ad98e1cb055cb19cf8f0ae30b /spec/requests/api
parentab2c6cc01ff26e07db15110e037e72159c48dc53 (diff)
Add some fixes after review
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/builds_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb
index 587fb74750d..4bf3d2681dc 100644
--- a/spec/requests/api/builds_spec.rb
+++ b/spec/requests/api/builds_spec.rb
@@ -35,6 +35,12 @@ describe API::API, api: true do
expect(response.status).to eq(200)
expect(json_response).to be_an Array
end
+
+ it 'should respond 400 when scope contains invalid state' do
+ get api("/projects/#{project.id}/builds?scope[0]=pending&scope[1]=unknown_status", user)
+
+ expect(response.status).to eq(400)
+ end
end
context 'unauthorized user' do