2013-11-13 07:10:03 -05:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: broadcast_messages
|
|
|
|
#
|
|
|
|
# id :integer not null, primary key
|
2014-04-09 08:05:03 -04:00
|
|
|
# message :text not null
|
2013-11-13 07:10:03 -05:00
|
|
|
# starts_at :datetime
|
|
|
|
# ends_at :datetime
|
2014-04-09 08:05:03 -04:00
|
|
|
# created_at :datetime
|
|
|
|
# updated_at :datetime
|
2013-12-09 00:34:51 -05:00
|
|
|
# color :string(255)
|
|
|
|
# font :string(255)
|
2013-11-13 07:10:03 -05:00
|
|
|
#
|
|
|
|
|
2013-11-12 06:47:28 -05:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :broadcast_message do
|
|
|
|
message "MyText"
|
2015-12-31 16:04:07 -05:00
|
|
|
starts_at Date.today
|
|
|
|
ends_at Date.tomorrow
|
|
|
|
|
|
|
|
trait :expired do
|
|
|
|
starts_at 5.days.ago
|
|
|
|
ends_at 3.days.ago
|
|
|
|
end
|
2015-12-31 17:07:11 -05:00
|
|
|
|
|
|
|
trait :future do
|
|
|
|
starts_at 5.days.from_now
|
|
|
|
ends_at 6.days.from_now
|
|
|
|
end
|
2013-11-12 06:47:28 -05:00
|
|
|
end
|
|
|
|
end
|