diff options
author | Joe Sak <joe@joesak.com> | 2010-08-09 14:05:16 -0500 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2010-08-09 14:05:16 -0500 |
commit | be4c8c3836e2d61edd516cac9ba1f4f0cb1ddf3b (patch) | |
tree | 4cee54987ab62db9268a5e96281910cf0cd871cd /spec/factories/blog_comments.rb | |
parent | 4a25cde49f710adcefcb644b418a94d3d5339dbd (diff) | |
download | refinerycms-blog-be4c8c3836e2d61edd516cac9ba1f4f0cb1ddf3b.tar.gz refinerycms-blog-be4c8c3836e2d61edd516cac9ba1f4f0cb1ddf3b.tar.bz2 refinerycms-blog-be4c8c3836e2d61edd516cac9ba1f4f0cb1ddf3b.zip |
Converted to factory_girl use, a little refactored
Diffstat (limited to 'spec/factories/blog_comments.rb')
-rw-r--r-- | spec/factories/blog_comments.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/blog_comments.rb b/spec/factories/blog_comments.rb new file mode 100644 index 0000000..93beaf3 --- /dev/null +++ b/spec/factories/blog_comments.rb @@ -0,0 +1,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
\ No newline at end of file |