summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-03 14:17:43 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-07-03 14:17:43 +0800
commitd8ab0d609da979bf255660fb36d1a976c149b344 (patch)
treecfa85605c897898a8c35e17b0049118f52642647
parentfb897f53bb28bd06373852f32a19aaa266e1c99e (diff)
downloadgitlab-ce-d8ab0d609da979bf255660fb36d1a976c149b344.tar.gz
Give project to the dummy pipeline
-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)