aboutsummaryrefslogblamecommitdiffstats
path: root/spec/factories/blog_comments.rb
blob: 93beaf3827e2152faa6a111c6f9b74eaefcea06d (plain) (tree)
1
2
3
4
5
6
7
8
9
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