Sha256: c2d1e651adb098d517c5a23463ee4a13e821c2b917e3ad236e915e642459c947
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :tasks_taskables_question_answer, aliases: [:question_answer], class: 'Tasks::Taskables::Question::Answer' do author { User.create } ignore do options [] end after :build do |answer, evaluator| evaluator.options.each do |option| answer.votes.build option: option end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/factories/tasks_taskables_question_answers.rb |