blob: 9405c42435055b7dd6f49a7f59c6c11c1d6df09e (
plain) (
tree)
|
|
require 'factory_girl'
Factory.define(:blog_comment) do |f|
f.name "Joe Commenter"
f.sequence(:email) { |n| "person#{n}@example.com" }
f.body "Which one is the best for picking up new shoes?"
f.association :post, :factory => :blog_post
end
|