Sha256: 7da357bb27c8523c11acf5fba4710ef2d5308ff17f22359a92ed29aa18c4514d

Contents?: true

Size: 503 Bytes

Versions: 16

Compression:

Stored size: 503 Bytes

Contents

FactoryGirl.define do

  factory :post, class: CmsPost do
    slug            'test-post'
    title           'Test Post'
    summary         'Test Summary'
    content         'Test content'
    
    factory :news_post do
      slug          'news-post'
      title         'News Post'
      summary       'News Summary'
      content       'News content'
    end

    factory :invalid_post do
      title               nil
      summary             nil
      content             nil
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_cms-4.2.3.10 spec/factories/posts.rb
dm_cms-4.2.3.9 spec/factories/posts.rb
dm_cms-4.2.3.8 spec/factories/posts.rb
dm_cms-4.2.3.7 spec/factories/posts.rb
dm_cms-4.2.3.6 spec/factories/posts.rb
dm_cms-4.2.3.5 spec/factories/posts.rb
dm_cms-4.2.3.4 spec/factories/posts.rb
dm_cms-4.2.3.3 spec/factories/posts.rb
dm_cms-4.2.3.2 spec/factories/posts.rb
dm_cms-4.2.3.1 spec/factories/posts.rb
dm_cms-4.2.3 spec/factories/posts.rb
dm_cms-4.2.2.3 spec/factories/posts.rb
dm_cms-4.2.2.2 spec/factories/posts.rb
dm_cms-4.2.2.1 spec/factories/posts.rb
dm_cms-4.2.2 spec/factories/posts.rb
dm_cms-4.2.1.5 spec/factories/posts.rb