Sha256: 466188604f0a6faabeecef60969a09a005b571f10432cfd4fa7766520ebc6ed8

Contents?: true

Size: 217 Bytes

Versions: 5

Compression:

Stored size: 217 Bytes

Contents

FactoryGirl.define do
  factory :ecm_blog_post, class: Ecm::Blog::Post do
    association(:creator, factory: :ecm_user_area_user)
    sequence(:title) { |i| "Blog post #{i}"}
    body 'This is a blog post!'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_blog-1.3.1 spec/factories/ecm_blog_posts.rb
ecm_blog-1.3.0 spec/factories/ecm_blog_posts.rb
ecm_blog-1.2.1 spec/factories/ecm_blog_posts.rb
ecm_blog-1.2.0 spec/factories/ecm_blog_posts.rb
ecm_blog-1.0.2 spec/factories/ecm_blog_posts.rb