Add survey related tests

This commit is contained in:
Stella Rouzi 2018-02-08 21:02:16 +02:00
parent 68a8ec2204
commit c278e547ce
8 changed files with 198 additions and 1 deletions

View file

@ -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)'

View file

@ -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