diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-08-31 18:17:56 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-09-04 15:55:26 +0300 |
commit | d614c431055286eaab3b82e810186ac19a2c4fd7 (patch) | |
tree | 1cd600d5212471e79f295c310e736b2545fc6add /spec/requests | |
parent | cff104ec4b0dd2c53ed907ab7ca423b7c587dee8 (diff) |
Fix trigger_request.variables
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/v3/triggers_spec.rb | 3 |
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 aca912dd427..7ccf387f2dc 100644 --- a/spec/requests/api/v3/triggers_spec.rb +++ b/spec/requests/api/v3/triggers_spec.rb @@ -80,7 +80,8 @@ describe API::V3::Triggers do post v3_api("/projects/#{project.id}/trigger/builds"), options.merge(variables: variables, ref: 'master') expect(response).to have_http_status(201) pipeline.builds.reload - expect(pipeline.builds.first.trigger_request.variables).to eq(variables) + expect(pipeline.variables.map { |v| { v.key => v.value } }.first).to eq(variables) + expect(json_response['variables']).to eq(variables) end end end |