osem-fcy/spec/factories/programs.rb
2018-09-06 00:42:28 +02:00

15 lines
317 B
Ruby

# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :program do
schedule_public false
schedule_fluid false
conference
trait :with_cfp do
after(:create) { |program| create(:cfp, program: program) }
end
end
end