clarion/spec/factories/conferences.rb

23 lines
602 B
Ruby

# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryBot.define do
factory :conference do
sequence(:title) { |n| "Conference-#{n}" }
email { "foo@example.com" }
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
start_date { Date.today - 10.days }
end_date { Date.today - 5.days }
end
factory :future_conference do
start_date { Date.today + 5.days }
end_date { Date.today + 10.days }
end
end
end