Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-31 18:17:56 +0300
committerShinya Maeda <shinya@gitlab.com>2017-09-04 15:55:26 +0300
commitd614c431055286eaab3b82e810186ac19a2c4fd7 (patch)
tree1cd600d5212471e79f295c310e736b2545fc6add /spec/requests/api
parentcff104ec4b0dd2c53ed907ab7ca423b7c587dee8 (diff)
Fix trigger_request.variables
Diffstat (limited to 'spec/requests/api')
-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 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