Commit 72cddf5a authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Fix test stage specs

parent beaa6353
...@@ -4,7 +4,7 @@ require 'lib/gitlab/cycle_analytics/shared_stage_spec' ...@@ -4,7 +4,7 @@ require 'lib/gitlab/cycle_analytics/shared_stage_spec'
describe Gitlab::CycleAnalytics::TestStage do describe Gitlab::CycleAnalytics::TestStage do
let(:stage_name) { :test } let(:stage_name) { :test }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:stage) { described_class.new(project: project, options: { from: 2.days.ago, current_user: project.creator }) } let(:stage) { described_class.new(options: { from: 2.days.ago, current_user: project.creator, project: project }) }
it_behaves_like 'base stage' it_behaves_like 'base stage'
...@@ -36,7 +36,7 @@ describe Gitlab::CycleAnalytics::TestStage do ...@@ -36,7 +36,7 @@ describe Gitlab::CycleAnalytics::TestStage do
end end
it 'counts median from issues with metrics' do it 'counts median from issues with metrics' do
expect(stage.median).to eq(ISSUES_MEDIAN) expect(stage.project_median).to eq(ISSUES_MEDIAN)
end end
end end
end end
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