2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2013-11-12 06:47:28 -05:00
|
|
|
factory :broadcast_message do
|
2019-10-01 20:06:26 -04:00
|
|
|
message { "MyText" }
|
2018-09-20 13:02:36 -04:00
|
|
|
starts_at { 1.day.ago }
|
|
|
|
ends_at { 1.day.from_now }
|
2015-12-31 16:04:07 -05:00
|
|
|
|
|
|
|
trait :expired do
|
2018-09-20 13:02:36 -04:00
|
|
|
starts_at { 5.days.ago }
|
|
|
|
ends_at { 3.days.ago }
|
2015-12-31 16:04:07 -05:00
|
|
|
end
|
2015-12-31 17:07:11 -05:00
|
|
|
|
|
|
|
trait :future do
|
2018-09-20 13:02:36 -04:00
|
|
|
starts_at { 5.days.from_now }
|
|
|
|
ends_at { 6.days.from_now }
|
2015-12-31 17:07:11 -05:00
|
|
|
end
|
2013-11-12 06:47:28 -05:00
|
|
|
end
|
|
|
|
end
|