Program component for splash page
This commit is contained in:
parent
a33e930111
commit
d0fd21bfc2
18 changed files with 118 additions and 11 deletions
|
|
@ -6,8 +6,19 @@ FactoryGirl.define do
|
|||
sequence(:short_title) { |n| "dps#{n}14" }
|
||||
social_tag 'dps14'
|
||||
timezone 'Amsterdam'
|
||||
description 'Lorem Ipsum dolsum'
|
||||
contact_email 'admin@example.com'
|
||||
start_date Date.today
|
||||
end_date Date.tomorrow
|
||||
factory :conference_with_registration do
|
||||
after(:build) do |conference|
|
||||
create(:participant_role)
|
||||
create(:admin_role)
|
||||
user = build(:user)
|
||||
conference.registrations << build(:registration,
|
||||
conference: conference,
|
||||
person: user.person)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
9
spec/factories/person.rb
Normal file
9
spec/factories/person.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FactoryGirl.define do
|
||||
factory :person do
|
||||
first_name 'Example first_name'
|
||||
last_name 'Example last_name'
|
||||
sequence(:email) { |n| "example#{n}@example.com" }
|
||||
featured true
|
||||
user
|
||||
end
|
||||
end
|
||||
6
spec/factories/registrations.rb
Normal file
6
spec/factories/registrations.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryGirl.define do
|
||||
factory :registration do
|
||||
person
|
||||
conference
|
||||
end
|
||||
end
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
FactoryGirl.define do
|
||||
factory :user do
|
||||
email 'example@example.com'
|
||||
sequence(:email) { |n| "example#{n}@example.com" }
|
||||
password 'changeme'
|
||||
password_confirmation 'changeme'
|
||||
confirmed_at Time.now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue