aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/factories/blog_comments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/support/factories/blog_comments.rb')
-rw-r--r--features/support/factories/blog_comments.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/features/support/factories/blog_comments.rb b/features/support/factories/blog_comments.rb
new file mode 100644
index 0000000..93beaf3
--- /dev/null
+++ b/features/support/factories/blog_comments.rb
@@ -0,0 +1,10 @@
+Factory.sequence :email do |n|
+ "person#{n}@example.com"
+end
+
+Factory.define(:blog_comment) do |f|
+ f.name "Joe Commenter"
+ f.email { Factory.next(:email) }
+ f.body "Which one is the best for picking up new shoes?"
+ f.association :post
+end \ No newline at end of file