summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-02-22 10:40:58 +0100
committerRobert Schilling <rschilling@student.tugraz.at>2017-02-22 10:47:48 +0100
commitb8c88a839da9722f17bc7a851af2fae15e1ab1c5 (patch)
treec3ad420041daa79728eade5e2002ee76cd512e2c /spec
parenta7a0873829ffbb9e69effd5803792cb2614d3581 (diff)
downloadgitlab-ce-b8c88a839da9722f17bc7a851af2fae15e1ab1c5.tar.gz
Grapfiy the CI::Triggers APIgrapify-ci-triggers-api
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