diff options
Diffstat (limited to 'spec/factories/blog_comments.rb')
-rw-r--r-- | spec/factories/blog_comments.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/factories/blog_comments.rb b/spec/factories/blog_comments.rb index d738cac..0bb5206 100644 --- a/spec/factories/blog_comments.rb +++ b/spec/factories/blog_comments.rb @@ -1,6 +1,8 @@ -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 +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 |