osem-fcy/spec/factories/tracks.rb
AEtherC0r3 d9faffc96a Implement track request acceptance
Allow track submitter to request specific dates
Redirect to Tracks#edit if a track doesn't have a room or start/end date
before accepting it

Don't allow the submitter or the track organizers to edit the request
after it has been accepted or confirmed

Restrict track selection in proposals and move track selection from
Proposals form to events helper

Mark cfp_active of the tracks table as not null and fill in true if nil
2017-08-11 16:25:21 +03:00

20 lines
481 B
Ruby

FactoryGirl.define do
factory :track do
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 { Date.today }
end_date { Date.today }
room
end
end
end