diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-03-22 12:20:44 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-05-08 11:24:55 -0300 |
commit | 85f0b3a984048d1e5d146a233612a0bc96f12b5c (patch) | |
tree | 5161ccee6916d8a4c8cd776aa6f665ee0ca71e0e /spec | |
parent | 4ae411ff40352ec21bd10f859b7f3f9f85a7aee6 (diff) | |
download | gitlab-ce-85f0b3a984048d1e5d146a233612a0bc96f12b5c.tar.gz |
Add merge requests association to pipeline
Diffstat (limited to 'spec')
-rw-r--r-- | spec/workers/pipeline_metrics_worker_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/pipeline_metrics_worker_spec.rb b/spec/workers/pipeline_metrics_worker_spec.rb index 5dbc0da95c2..dbf2b7251c6 100644 --- a/spec/workers/pipeline_metrics_worker_spec.rb +++ b/spec/workers/pipeline_metrics_worker_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' describe PipelineMetricsWorker do let(:project) { create(:project, :repository) } - let!(:merge_request) { create(:merge_request, source_project: project, source_branch: pipeline.ref) } + let!(:merge_request) { create(:merge_request, source_project: project, source_branch: pipeline.ref, head_pipeline_id: pipeline.id) } let(:pipeline) do create(:ci_empty_pipeline, |