osem-fcy/spec/factories/tracks.rb

24 lines
585 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :track do
2016-04-30 17:56:23 +02:00
name { Faker::Commerce.department(2, 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(2) }
end
end
2014-06-30 17:07:53 +02:00
end