refinerycms-blog/features/support/factories/blog_comments.rb
2010-11-23 09:34:11 +13:00

10 lines
245 B
Ruby

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