1 2 3 4 5 6 7 8 9 10
FactoryGirl.define do factory :ticket do title { Faker::Lorem.sentence } comments_attributes do { "0" => { "body" => Faker::Lorem.sentences } } end end end