aboutsummaryrefslogtreecommitdiffstats
path: root/features/support/factories/blog_posts.rb
blob: b5996a5abff6e4ef9207e063e8a3d6a148abee53 (plain) (blame)
1
2
3
4
5
6
7
8
9
require 'factory_girl'

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