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
path: root/spec
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-03 09:17:43 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-07-03 09:17:43 +0300
commitd8ab0d609da979bf255660fb36d1a976c149b344 (patch)
treecfa85605c897898a8c35e17b0049118f52642647 /spec
parentfb897f53bb28bd06373852f32a19aaa266e1c99e (diff)
Give project to the dummy pipeline
Diffstat (limited to 'spec')
-rw-r--r--spec/support/cycle_analytics_helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/cycle_analytics_helpers.rb b/spec/support/cycle_analytics_helpers.rb
index 6e1eb5c678d..c0a5491a430 100644
--- a/spec/support/cycle_analytics_helpers.rb
+++ b/spec/support/cycle_analytics_helpers.rb
@@ -74,7 +74,9 @@ module CycleAnalyticsHelpers
def dummy_pipeline
@dummy_pipeline ||=
- Ci::Pipeline.new(sha: project.repository.commit('master').sha)
+ Ci::Pipeline.new(
+ sha: project.repository.commit('master').sha,
+ project: project)
end
def new_dummy_job(environment)