osem-fcy/spec/factories/programs.rb

16 lines
325 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-03 20:48:28 +02:00
# Read about factories at https://github.com/thoughtbot/factory_bot
2014-04-30 14:48:20 +02:00
FactoryBot.define do
factory :program do
schedule_public { false }
schedule_fluid { false }
2015-11-07 11:43:36 +02:00
conference
trait :with_cfp do
after(:create) { |program| create(:cfp, program: program) }
end
end
end