Last stage of refactoring of the ability model and spec
This commit is contained in:
parent
762985b83d
commit
6a5cccbaad
22 changed files with 409 additions and 159 deletions
|
|
@ -7,6 +7,22 @@ FactoryGirl.define do
|
|||
timezone 'Amsterdam'
|
||||
start_date { Date.today }
|
||||
end_date { 6.days.from_now }
|
||||
venue
|
||||
factory :full_conference do
|
||||
venue
|
||||
splashpage
|
||||
registration_period
|
||||
call_for_paper
|
||||
|
||||
after(:build) do |conference|
|
||||
conference.commercials << build(:conference_commercial, commercialable: conference)
|
||||
conference.campaigns << build(:campaign, conference: conference)
|
||||
conference.targets << build(:target, conference: conference)
|
||||
conference.questions << build(:question, conference_id: conference.id)
|
||||
conference.lodgings << build(:lodging, conference: conference)
|
||||
conference.sponsors << build(:sponsor, conference: conference)
|
||||
conference.sponsorship_levels << build(:sponsorship_level, conference: conference)
|
||||
conference.tickets << build(:ticket, conference: conference)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue