summaryrefslogtreecommitdiff
path: root/help/test/factories.rb
diff options
context:
space:
mode:
Diffstat (limited to 'help/test/factories.rb')
-rw-r--r--help/test/factories.rb10
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