* Survey period constraints * Add abilities * Enforce required questions * Update survey_submssion updated_at * Do a full match of possible answer and user reply
17 lines
378 B
Ruby
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
|