diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-03-22 16:36:14 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-05-08 11:26:04 -0300 |
commit | 24824cbb4c6d2c5ebd08dea03007f65c5df763da (patch) | |
tree | 618cc1a50e76126e4aff941bd538a31917e5282b /spec/models/cycle_analytics | |
parent | 85f0b3a984048d1e5d146a233612a0bc96f12b5c (diff) | |
download | gitlab-ce-24824cbb4c6d2c5ebd08dea03007f65c5df763da.tar.gz |
Fix Specs
Diffstat (limited to 'spec/models/cycle_analytics')
-rw-r--r-- | spec/models/cycle_analytics/test_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/cycle_analytics/test_spec.rb b/spec/models/cycle_analytics/test_spec.rb index c2ba012a0e6..d0b919efcf9 100644 --- a/spec/models/cycle_analytics/test_spec.rb +++ b/spec/models/cycle_analytics/test_spec.rb @@ -14,6 +14,7 @@ describe 'CycleAnalytics#test', feature: true do issue = context.create(:issue, project: context.project) merge_request = context.create_merge_request_closing_issue(issue) pipeline = context.create(:ci_pipeline, ref: merge_request.source_branch, sha: merge_request.diff_head_sha, project: context.project) + merge_request.update(head_pipeline: pipeline) { pipeline: pipeline, issue: issue } end, start_time_conditions: [["pipeline is started", -> (context, data) { data[:pipeline].run! }]], |