Sha256: aa32b5cb54cd7aa4ad50b12d8df101bcc3227dd45bdd3a1c34a3a8b09bc0c3ae

Contents?: true

Size: 417 Bytes

Versions: 33

Compression:

Stored size: 417 Bytes

Contents

FactoryBot.define do
  factory :base_cms_page, class: Spree::CmsPage do
    title { generate(:random_string) }
    locale { 'en' }

    store

    factory :cms_homepage do
      type { 'Spree::Cms::Pages::Homepage' }
    end

    factory :cms_standard_page do
      type { 'Spree::Cms::Pages::StandardPage' }
    end

    factory :cms_feature_page do
      type { 'Spree::Cms::Pages::FeaturePage' }
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spree_core-4.10.1 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.10.0 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.9.0 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.8.3 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.8.2 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.7.3 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.6 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.5.5 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.3.3 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.4.1 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.5.4 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.5 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.7.2 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.7.1 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.4 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.7.0 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.3 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.2 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.1 lib/spree/testing_support/factories/cms_page_factory.rb
spree_core-4.6.0 lib/spree/testing_support/factories/cms_page_factory.rb