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
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-22 16:11:04 +0300
committerRémy Coutable <remy@rymai.me>2017-02-22 16:11:04 +0300
commit9aaf38d6cfc67652f0239b25eae36ab6517ea02f (patch)
treed7293bfdc4a007376a18a36a75b32bb2b1beb5df /spec
parent7813ceddf7bb175510c9be03ec182d2514d583a2 (diff)
parentb8c88a839da9722f17bc7a851af2fae15e1ab1c5 (diff)
Merge branch 'grapify-ci-triggers-api' into 'master'
Grapfiy the CI::Triggers API See merge request !9439
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/ci/api/triggers_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/ci/api/triggers_spec.rb b/spec/requests/ci/api/triggers_spec.rb
index a30be767119..5321f8b134f 100644
--- a/spec/requests/ci/api/triggers_spec.rb
+++ b/spec/requests/ci/api/triggers_spec.rb
@@ -60,7 +60,8 @@ describe Ci::API::Triggers do
it 'validates variables to be a hash' do
post ci_api("/projects/#{project.ci_id}/refs/master/trigger"), options.merge(variables: 'value')
expect(response).to have_http_status(400)
- expect(json_response['message']).to eq('variables needs to be a hash')
+
+ expect(json_response['error']).to eq('variables is invalid')
end
it 'validates variables needs to be a map of key-valued strings' do