Commit 75dca155 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix incorrect `let` in pipeline metrics worker specs

parent c29247aa
......@@ -2,7 +2,12 @@ require 'spec_helper'
describe PipelineMetricsWorker do
let(:project) { create(:project, :repository) }
let!(:merge_request) { create(:merge_request, source_project: project, source_branch: pipeline.ref, head_pipeline: pipeline) }
let!(:merge_request) do
create(:merge_request, source_project: project,
source_branch: pipeline.ref,
head_pipeline: pipeline)
end
let(:pipeline) do
create(:ci_empty_pipeline,
......@@ -14,6 +19,8 @@ describe PipelineMetricsWorker do
finished_at: Time.now)
end
let(:status) { 'pending' }
describe '#perform' do
before do
described_class.new.perform(pipeline.id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment