aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/factories/blog_comments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/factories/blog_comments.rb')
-rw-r--r--spec/support/factories/blog_comments.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/factories/blog_comments.rb b/spec/support/factories/blog_comments.rb
new file mode 100644
index 0000000..0bb5206
--- /dev/null
+++ b/spec/support/factories/blog_comments.rb
@@ -0,0 +1,8 @@
+FactoryGirl.define do
+ factory :blog_comment, :class => 'refinery/blog_comment' do
+ name "Joe Commenter"
+ sequence(:email) { |n| "person#{n}@example.com" }
+ body "Which one is the best for picking up new shoes?"
+ association :post, :factory => :blog_post
+ end
+end