Sha256: 91e1459bd22417ced0ee500fc7f8f9373eecb80d71d58cfd2f566852af7e726d
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
FactoryGirl.define do factory :tasks_task, aliases: [:task], class: 'Tasks::Task' do association :taskable, factory: :verification trait(:with_verification) { association :taskable, factory: :verification } trait(:with_image_task) { association :taskable, factory: :tasks_taskables_image_request } trait(:with_question_task) { association :taskable, factory: :tasks_taskables_question_with_options } trait(:with_text_task) { association :taskable, factory: :tasks_taskables_text_request} factory :image_task, traits: [:with_image_task] factory :question_task, traits: [:with_question_task] factory :text_task, traits: [:with_text_task] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasuku-0.0.1 | spec/factories/tasks_tasks.rb |