diff options
Diffstat (limited to 'spec/factories/ci/trigger_schedules.rb')
-rw-r--r-- | spec/factories/ci/trigger_schedules.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/factories/ci/trigger_schedules.rb b/spec/factories/ci/trigger_schedules.rb deleted file mode 100644 index 2390706fa41..00000000000 --- a/spec/factories/ci/trigger_schedules.rb +++ /dev/null @@ -1,28 +0,0 @@ -FactoryGirl.define do - factory :ci_trigger_schedule, class: Ci::TriggerSchedule do - trigger factory: :ci_trigger_for_trigger_schedule - cron '0 1 * * *' - cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE - ref 'master' - active true - - after(:build) do |trigger_schedule, evaluator| - trigger_schedule.project ||= trigger_schedule.trigger.project - end - - trait :nightly do - cron '0 1 * * *' - cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE - end - - trait :weekly do - cron '0 1 * * 6' - cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE - end - - trait :monthly do - cron '0 1 22 * *' - cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE - end - end -end |