2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2018-09-03 20:44:39 +02:00
|
|
|
FactoryBot.define do
|
2014-05-19 12:24:48 +05:30
|
|
|
factory :track do
|
2022-02-11 16:55:39 +01:00
|
|
|
name { Faker::Commerce.department(max: 2, fixed_amount: true) }
|
2016-04-30 17:56:23 +02:00
|
|
|
description { Faker::Lorem.sentence }
|
|
|
|
|
color { Faker::Color.hex_color }
|
2017-06-29 23:39:56 +03:00
|
|
|
short_name { SecureRandom.urlsafe_base64(5) }
|
2018-09-08 03:58:50 +02:00
|
|
|
state { 'confirmed' }
|
|
|
|
|
cfp_active { true }
|
2016-05-24 23:54:46 +05:30
|
|
|
program
|
2017-06-08 12:25:33 +03:00
|
|
|
|
|
|
|
|
trait :self_organized do
|
|
|
|
|
association :submitter, factory: :user
|
2018-09-08 03:58:50 +02:00
|
|
|
state { 'new' }
|
|
|
|
|
cfp_active { false }
|
2018-03-23 17:13:57 +05:00
|
|
|
start_date { Time.zone.today }
|
|
|
|
|
end_date { Time.zone.today }
|
2017-07-14 15:57:34 +03:00
|
|
|
room
|
2022-02-11 16:55:39 +01:00
|
|
|
relevance { Faker::Hipster.paragraph(sentence_count: 2) }
|
2017-06-08 12:25:33 +03:00
|
|
|
end
|
2014-05-19 12:24:48 +05:30
|
|
|
end
|
2014-06-30 17:07:53 +02:00
|
|
|
end
|