Sha256: 63f61c6d6cd6fcf7d1d0abd2c33e8477321c342fcc51c61707d37cb84d038a3b
Contents?: true
Size: 810 Bytes
Versions: 5
Compression:
Stored size: 810 Bytes
Contents
FactoryGirl.define do factory :invalid_page, class: Kms::Page do content <<-HTML <h1>About</h1> HTML published true template slug nil factory :index_page, class: Kms::Page do title 'Index' slug 'index' end factory :page, class: Kms::Page do sequence(:title){|n| "About#{n}" } sequence(:slug){|n| "about#{n}" } association :parent, factory: :index_page end factory :page_404, class: Kms::Page do slug '404' content <<-HTML <h1>Not Found</h1> HTML association :parent, factory: :index_page end factory :templatable_page, class: Kms::Page do slug 'template' templatable true templatable_type Kms::Snippet.name association :parent, factory: :index_page end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
kms-1.2.1 | spec/factories/pages.rb |
kms-1.2.0 | spec/factories/pages.rb |
kms-1.1.0 | spec/factories/pages.rb |
kms-1.0.1 | spec/factories/pages.rb |
kms-1.0.0 | spec/factories/pages.rb |