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

Factory.define(:blog_post, :class => BlogPost) 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