This commit is contained in:
Aditya Prakash 2016-03-16 15:54:10 +00:00
commit 19855d9cba
9 changed files with 469 additions and 34 deletions

View file

@ -7,7 +7,7 @@ FactoryGirl.define do
timezone 'Amsterdam'
start_date { Date.today }
end_date { 6.days.from_now }
registration_limit 0
registration_limit 10
after(:create) do |conference|
Role.where(name: 'organizer', resource: conference).first_or_create(description: 'For the organizers of the conference (who shall have full access)')

View file

@ -4,5 +4,6 @@ FactoryGirl.define do
factory :registration do
user
conference
arrival 3.days.ago
end
end