Tests for registration model

Before registration we need to make sure that conference has registration_period
This commit is contained in:
Aditya Prakash 2016-02-27 13:43:19 +05:30
parent c71d15565e
commit 13a6586f81
2 changed files with 70 additions and 15 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)')