implement manual event management and support for multiple speakers per event
This commit is contained in:
parent
46a6a59622
commit
790e2fd3a2
24 changed files with 180 additions and 89 deletions
|
|
@ -8,7 +8,8 @@ FactoryGirl.define do
|
|||
program
|
||||
|
||||
after(:build) do |event|
|
||||
event.event_users << build(:submitter) unless event.submitter # so that we don't have two submitters
|
||||
event.submitter = build(:submitter).user unless event.submitter # so that we don't have two submitters
|
||||
event.speakers << build(:speaker).user unless event.speakers.any?
|
||||
# set an event_type if none is passed to the factory.
|
||||
# needs to be created here because otherwise it doesn't belong to the
|
||||
# same conference as the event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue