clarion/spec/factories/conferences.rb

23 lines
580 B
Ruby
Raw Normal View History

# Read about factories at https://github.com/thoughtbot/factory_girl
2019-04-28 01:25:13 +03:00
FactoryBot.define do
factory :conference do
sequence(:title) { |n| "Conference-#{n}" }
email
2019-04-28 01:25:13 +03:00
description { 'MyText' }
start_date { '2014-07-29 21:29:13' }
end_date { '2014-07-31 21:29:13' }
planned_cfp_end_date { '2014-07-28' }
factory :past_conference do
2019-04-28 01:25:13 +03:00
start_date { Date.today - 10.days }
end_date { Date.today - 5.days }
end
factory :future_conference do
2019-04-28 01:25:13 +03:00
start_date { Date.today + 5.days }
end_date { Date.today + 10.days }
end
end
end