Add survey related tests
This commit is contained in:
parent
68a8ec2204
commit
c278e547ce
8 changed files with 198 additions and 1 deletions
|
|
@ -2,6 +2,10 @@ FactoryGirl.define do
|
|||
factory :survey_question do
|
||||
survey
|
||||
title 'What about this question?'
|
||||
kind :boolean
|
||||
min_choices nil
|
||||
max_choices nil
|
||||
possible_answers nil
|
||||
|
||||
factory :boolean_non_mandatory do
|
||||
title 'Have you attended the conference before? (Non mandatory)'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
FactoryGirl.define do
|
||||
factory :survey do
|
||||
title 'This is my survey'
|
||||
start_date Date.current - 1.day
|
||||
end_date Date.current + 1.day
|
||||
|
||||
factory :conference_survey do
|
||||
association :surveyable, factory: :conference
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue