blob: be04f15a96e5abc1b471fd90498172f067e255b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
FactoryGirl.define do
factory :ticket do
subject { Faker::Lorem.sentence }
email { Faker::Internet.email }
factory :ticket_with_comment do
comments_attributes do
{ "0" => { "body" => Faker::Lorem.sentences.join(" ") } }
end
end
factory :ticket_with_creator do
created_by { FactoryGirl.create(:user).id }
end
end
end
|