summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 14:47:29 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 16:17:29 +0200
commit03088552549ed1631bb16c1bf3d0bef3613ec793 (patch)
tree50996bfbef73056b04a74751552f016f9d554342 /spec
parent1ae1d85cdc835c8ed7907e83f3e371018c7c8fe6 (diff)
downloadgitlab-ce-03088552549ed1631bb16c1bf3d0bef3613ec793.tar.gz
Fix ref reference
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/ci/trigger_schedules.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/ci/trigger_schedules.rb b/spec/factories/ci/trigger_schedules.rb
index f20799245e0..315bce16995 100644
--- a/spec/factories/ci/trigger_schedules.rb
+++ b/spec/factories/ci/trigger_schedules.rb
@@ -4,6 +4,10 @@ FactoryGirl.define do
cron '0 1 * * *'
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
+ after(:build) do |trigger_schedule, evaluator|
+ trigger_schedule.update!(project: trigger_schedule.trigger.project)
+ end
+
trait :nightly do
cron '0 1 * * *'
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE