diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-22 16:11:04 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-22 16:11:04 +0300 |
commit | 9aaf38d6cfc67652f0239b25eae36ab6517ea02f (patch) | |
tree | d7293bfdc4a007376a18a36a75b32bb2b1beb5df /spec | |
parent | 7813ceddf7bb175510c9be03ec182d2514d583a2 (diff) | |
parent | b8c88a839da9722f17bc7a851af2fae15e1ab1c5 (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.rb | 3 |
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 |