diff options
Diffstat (limited to 'spec/support/refinery/factories/blog_posts.rb')
-rw-r--r-- | spec/support/refinery/factories/blog_posts.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/refinery/factories/blog_posts.rb b/spec/support/refinery/factories/blog_posts.rb new file mode 100644 index 0000000..548636d --- /dev/null +++ b/spec/support/refinery/factories/blog_posts.rb @@ -0,0 +1,7 @@ +Factory.define :blog_post, :class => 'refinery/blog_post' do |f| + f.sequence(:title) { |n| "Top #{n} Shopping Centers in Chicago" } + f.body "These are the top ten shopping centers in Chicago. You're going to read a long blog post about them. Come to peace with it." + f.draft false + f.tag_list "chicago, shopping, fun times" + f.published_at Time.now +end |