diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-27 12:11:01 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-27 12:11:01 +0000 |
commit | c52a9411d8e66b8c6a1a1b3672626a326d73e884 (patch) | |
tree | 14fbb7768d935c7751cc8b2b7a66887312908312 /spec/requests/api/ci/triggers_spec.rb | |
parent | 8588e8b9316538f27f45a6e380bd0663bb509d66 (diff) | |
download | gitlab-ce-c52a9411d8e66b8c6a1a1b3672626a326d73e884.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/ci/triggers_spec.rb')
-rw-r--r-- | spec/requests/api/ci/triggers_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/ci/triggers_spec.rb b/spec/requests/api/ci/triggers_spec.rb index 953dcb8a483..f9b7880a4c4 100644 --- a/spec/requests/api/ci/triggers_spec.rb +++ b/spec/requests/api/ci/triggers_spec.rb @@ -81,7 +81,7 @@ RSpec.describe API::Ci::Triggers do end it 'validates variables needs to be a map of key-valued strings' do - post api("/projects/#{project.id}/trigger/pipeline"), params: options.merge(variables: { key: %w(1 2) }, ref: 'master') + post api("/projects/#{project.id}/trigger/pipeline"), params: options.merge(variables: { 'TRIGGER_KEY' => %w(1 2) }, ref: 'master') expect(response).to have_gitlab_http_status(:bad_request) expect(json_response['message']).to eq('variables needs to be a map of key-valued strings') |