summaryrefslogtreecommitdiff
path: root/help/test/factories.rb
blob: 5368ce6e74b86c966790887b66d2facb3b3c2549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FactoryGirl.define do

  factory :ticket do
    title { Faker::Lorem.sentence }
    email { Faker::Internet.email }

    factory :ticket_with_comment do
      comments_attributes do
        { "0" => { "body" => Faker::Lorem.sentences.join(" ") } }
      end
    end
  end

end