Commit b5f252bd authored by Shinya Maeda's avatar Shinya Maeda

Fix spec/factories_spec.rb

parent 934e9497
FactoryGirl.define do FactoryGirl.define do
factory :ci_trigger_schedule, class: Ci::TriggerSchedule do factory :ci_trigger_schedule, class: Ci::TriggerSchedule do
trigger factory: :ci_trigger_for_trigger_schedule trigger factory: :ci_trigger_for_trigger_schedule
cron '0 1 * * *'
cron_time_zone Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
after(:build) do |trigger_schedule, evaluator| after(:build) do |trigger_schedule, evaluator|
trigger_schedule.update!(project: trigger_schedule.trigger.project) trigger_schedule.update!(project: trigger_schedule.trigger.project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment