Last stage of refactoring of the ability model and spec
This commit is contained in:
parent
762985b83d
commit
6a5cccbaad
22 changed files with 409 additions and 159 deletions
12
spec/factories/question.rb
Normal file
12
spec/factories/question.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
|
||||
FactoryGirl.define do
|
||||
factory :question do
|
||||
title 'blah'
|
||||
question_type
|
||||
after(:build) do |question|
|
||||
question.answers << build(:answer)
|
||||
question.conferences << build(:conference)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue