Commit 6f6805ed authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Move project level specs

parent ae2514d0
......@@ -2,7 +2,7 @@
require 'spec_helper'
describe CycleAnalytics do
describe CycleAnalytics::ProjectLevel do
let(:project) { create(:project, :repository) }
let(:from_date) { 10.days.ago }
let(:user) { create(:user, :admin) }
......@@ -11,7 +11,7 @@ describe CycleAnalytics do
let(:mr) { create_merge_request_closing_issue(user, project, issue, commit_message: "References #{issue.to_reference}") }
let(:pipeline) { create(:ci_empty_pipeline, status: 'created', project: project, ref: mr.source_branch, sha: mr.source_branch_sha, head_pipeline_of: mr) }
subject { described_class.new(project, from: from_date) }
subject { described_class.new(project: project, options: { from: from_date }) }
describe '#all_medians_per_stage' do
before do
......
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