Tests for registration model
Before registration we need to make sure that conference has registration_period
This commit is contained in:
parent
c71d15565e
commit
13a6586f81
2 changed files with 70 additions and 15 deletions
|
|
@ -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)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue