clarion/spec/factories/conferences.rb

23 lines
602 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}" }
2019-04-28 11:50:53 +03:00
email { 'foo@example.com' }
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