diff options
Diffstat (limited to 'help/test/factories.rb')
-rw-r--r-- | help/test/factories.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/help/test/factories.rb b/help/test/factories.rb new file mode 100644 index 0000000..5b38952 --- /dev/null +++ b/help/test/factories.rb @@ -0,0 +1,10 @@ +FactoryGirl.define do + + factory :ticket do + title { Faker::Lorem.sentence } + comments_attributes do + { "0" => { "body" => Faker::Lorem.sentences.join(" ") } } + end + end + +end |