]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/diary_comments.rb
Rework DiaryEntry and DiaryComment model tests to use factories.
[rails.git] / test / factories / diary_comments.rb
diff --git a/test/factories/diary_comments.rb b/test/factories/diary_comments.rb
new file mode 100644 (file)
index 0000000..810bd2f
--- /dev/null
@@ -0,0 +1,10 @@
+FactoryGirl.define do
+  factory :diary_comment do
+    sequence(:body) { |n| "This is diary comment #{n}" }
+
+    diary_entry
+
+    # Fixme requires User Factory
+    user_id 1
+  end
+end