]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/note_comments.rb
Add factories for notes and note_comments
[rails.git] / test / factories / note_comments.rb
diff --git a/test/factories/note_comments.rb b/test/factories/note_comments.rb
new file mode 100644 (file)
index 0000000..b06dc37
--- /dev/null
@@ -0,0 +1,8 @@
+FactoryGirl.define do
+  factory :note_comment do
+    sequence(:body) { |n| "This is note comment #{n}" }
+    visible true
+    event "opened"
+    note
+  end
+end