osem-fcy/spec/factories/surveys.rb
Stella Rouzi 683f62a27c Add more options for surveys
* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
2018-07-03 08:46:15 +03:00

17 lines
378 B
Ruby

# frozen_string_literal: true
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
factory :registration_survey do
association :surveyable, factory: :registration
end
end
end