blob: 1c05190a6fe7ef65acf0da565b7d6c200c14d503 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
require 'factory_girl'
Factory.define :blog_comment, :class => 'refinery/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
|