15 lines
347 B
Ruby
15 lines
347 B
Ruby
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
|