diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-07 14:47:29 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-07 16:17:29 +0200 |
commit | 03088552549ed1631bb16c1bf3d0bef3613ec793 (patch) | |
tree | 50996bfbef73056b04a74751552f016f9d554342 /spec | |
parent | 1ae1d85cdc835c8ed7907e83f3e371018c7c8fe6 (diff) | |
download | gitlab-ce-03088552549ed1631bb16c1bf3d0bef3613ec793.tar.gz |
Fix ref reference
Diffstat (limited to 'spec')
-rw-r--r-- | spec/factories/ci/trigger_schedules.rb | 4 |
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 |