2015-04-14 17:33:59 +02:00
|
|
|
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
|
factory :question do
|
|
|
|
|
title 'blah'
|
2016-02-25 12:36:35 +05:30
|
|
|
question_type_id 1
|
2015-04-14 17:33:59 +02:00
|
|
|
question_type
|
2016-02-25 12:36:35 +05:30
|
|
|
global false
|
2015-04-14 17:33:59 +02:00
|
|
|
after(:build) do |question|
|
|
|
|
|
question.answers << build(:answer)
|
|
|
|
|
question.conferences << build(:conference)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|