diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-03 09:17:43 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-03 09:17:43 +0300 |
commit | d8ab0d609da979bf255660fb36d1a976c149b344 (patch) | |
tree | cfa85605c897898a8c35e17b0049118f52642647 /spec | |
parent | fb897f53bb28bd06373852f32a19aaa266e1c99e (diff) |
Give project to the dummy pipeline
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/cycle_analytics_helpers.rb | 4 |
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) |