Files
osem/spec/factories/programs.rb
AEtherC0r3 a1124546f1 Fix rspec tests because of the changes to the cfp
Remove redundant association
Note: a conference created with :full_conference already has a cfp
2017-06-27 21:16:46 +03:00

14 lines
288 B
Ruby

# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.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