Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-02-21 15:13:56 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-03-01 19:43:26 +0300
commit522f4b2c6a0a1fe1e93d7bc2f9fe5290fccba4f9 (patch)
tree3ab5d0d19952c97c19a713df29d0c2de0feb010e /spec/models/cycle_analytics_spec.rb
parent335ee79a73fafdf00fac6e8ffc286ce4bad273ff (diff)
Adapt cycle analytics spec helper and cycle analytics usage data spec
Diffstat (limited to 'spec/models/cycle_analytics_spec.rb')
-rw-r--r--spec/models/cycle_analytics_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/cycle_analytics_spec.rb b/spec/models/cycle_analytics_spec.rb
index bbb91a4aae5..0fe24870f02 100644
--- a/spec/models/cycle_analytics_spec.rb
+++ b/spec/models/cycle_analytics_spec.rb
@@ -6,7 +6,7 @@ describe CycleAnalytics do
let(:user) { create(:user, :admin) }
let(:issue) { create(:issue, project: project, created_at: 2.days.ago) }
let(:milestone) { create(:milestone, project: project) }
- let(:mr) { create_merge_request_closing_issue(issue, commit_message: "References #{issue.to_reference}") }
+ 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) }
@@ -16,7 +16,7 @@ describe CycleAnalytics do
allow_any_instance_of(Gitlab::ReferenceExtractor).to receive(:issues).and_return([issue])
create_cycle(user, project, issue, mr, milestone, pipeline)
- deploy_master
+ deploy_master(user, project)
end
it 'returns every median for each stage for a specific project' do