2014-08-10 19:57:46 +03:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :conference do
|
2015-04-09 01:18:06 +03:00
|
|
|
title { |n| "Conference-#{n}" }
|
2014-08-10 19:57:46 +03:00
|
|
|
email
|
|
|
|
description 'MyText'
|
|
|
|
start_date '2014-07-29 21:29:13'
|
|
|
|
end_date '2014-07-31 21:29:13'
|
2014-08-10 22:05:25 +03:00
|
|
|
|
|
|
|
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
|
2014-08-10 19:57:46 +03:00
|
|
|
end
|
|
|
|
end
|