summaryrefslogtreecommitdiff
path: root/help/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-14 16:30:32 +0100
committerAzul <azul@leap.se>2013-01-14 16:30:32 +0100
commit632a31cf48f41b3d0ea52f3b741407d65ab64139 (patch)
treeec8d4f55b240f078cf384183eed18df4fe9ff5cf /help/test
parenta9ef046a596b5876792b1cc4ab0d26b9b255c342 (diff)
forgot to include the factory for tickets
Diffstat (limited to 'help/test')
-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..919882a
--- /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 } }
+ end
+ end
+
+end