summaryrefslogtreecommitdiff
path: root/spec/requests/api/v3/triggers_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/api/v3/triggers_spec.rb')
-rw-r--r--spec/requests/api/v3/triggers_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/api/v3/triggers_spec.rb b/spec/requests/api/v3/triggers_spec.rb
index d3de6bf13bc..60212660fb6 100644
--- a/spec/requests/api/v3/triggers_spec.rb
+++ b/spec/requests/api/v3/triggers_spec.rb
@@ -52,7 +52,8 @@ describe API::V3::Triggers do
it 'returns bad request with no builds created if there\'s no commit for that ref' do
post v3_api("/projects/#{project.id}/trigger/builds"), options.merge(ref: 'other-branch')
expect(response).to have_http_status(400)
- expect(json_response['message']).to eq('No builds created')
+ expect(json_response['message']['base'])
+ .to contain_exactly('Reference not found')
end
context 'Validates variables' do