mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
23 lines
620 B
Ruby
23 lines
620 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :track do
|
|
name { Faker::Commerce.department(max: 2, fixed_amount: true) }
|
|
description { Faker::Lorem.sentence }
|
|
color { Faker::Color.hex_color }
|
|
short_name { SecureRandom.urlsafe_base64(5) }
|
|
state { 'confirmed' }
|
|
cfp_active { true }
|
|
program
|
|
|
|
trait :self_organized do
|
|
association :submitter, factory: :user
|
|
state { 'new' }
|
|
cfp_active { false }
|
|
start_date { Time.zone.today }
|
|
end_date { Time.zone.today }
|
|
room
|
|
relevance { Faker::Hipster.paragraph(sentence_count: 2) }
|
|
end
|
|
end
|
|
end
|