aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories/blog_posts.rb
blob: 9b88b460890acf51497656504b8ba005d1f55c72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
FactoryGirl.define do
  factory :blog_post, :class => Refinery::Blog::Post do
    sequence(:title) { |n| "Top #{n} Shopping Centers in Chicago" }
    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."
    draft false
    published_at Time.now
    author { FactoryGirl.create(:authentication_devise_refinery_user) }

    factory :blog_post_draft do
      draft true
    end
  end
end