diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-08-13 21:57:43 +0300 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2011-08-13 21:57:43 +0300 |
commit | dbb02d953f55ed2171d778617c14affcd17bcfe9 (patch) | |
tree | 1211a3f5bfba1f430cb6854ad325e065a3b28233 /spec/support/factories/blog_comments.rb | |
parent | d0d5d9eb7d4d0c0af50388c92cd30384937836a7 (diff) | |
download | refinerycms-blog-dbb02d953f55ed2171d778617c14affcd17bcfe9.tar.gz refinerycms-blog-dbb02d953f55ed2171d778617c14affcd17bcfe9.tar.bz2 refinerycms-blog-dbb02d953f55ed2171d778617c14affcd17bcfe9.zip |
Move factories under spec dir so that they get picked up by spec_helper.
Diffstat (limited to 'spec/support/factories/blog_comments.rb')
-rw-r--r-- | spec/support/factories/blog_comments.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/factories/blog_comments.rb b/spec/support/factories/blog_comments.rb new file mode 100644 index 0000000..0bb5206 --- /dev/null +++ b/spec/support/factories/blog_comments.rb @@ -0,0 +1,8 @@ +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 |