Add change log. Fix spec.

This commit is contained in:
Shinya Maeda 2017-09-13 18:23:35 +09:00
parent 7338800787
commit 586f210601
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
title: Fix Pipeline Triggers to show triggered label and predefined variables (e.g.
CI_PIPELINE_TRIGGERED)
merge_request: 14244
author:
type: fixed

View File

@ -34,7 +34,7 @@ describe Ci::PipelineTriggerService do
expect(result[:pipeline].ref).to eq('master')
expect(result[:pipeline].project).to eq(project)
expect(result[:pipeline].user).to eq(trigger.owner)
expect([result[:pipeline].trigger_requests.last])
expect(result[:pipeline].trigger_requests.to_a)
.to eq(result[:pipeline].builds.map(&:trigger_request).uniq)
expect(result[:status]).to eq(:success)
end