Sha256: 6a20fd361e88ac06d5ddf588879796468ed37c21a4760e04b852745a85af8b02
Contents?: true
Size: 894 Bytes
Versions: 78
Compression:
Stored size: 894 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :feature_page, class: 'Spotlight::FeaturePage' do exhibit sequence(:title) { |n| "FeaturePage#{n}" } published { true } content { '[]' } end factory :feature_page_static_title, class: 'Spotlight::FeaturePage' do exhibit title { 'FeaturePage' } published { true } content { '[]' } end factory :feature_subpage, parent: :feature_page do transient do exhibit end title { 'SubPage1' } content { '[]' } after(:build) { |subpage, evaluator| subpage.parent_page = FactoryBot.create(:feature_page, exhibit: evaluator.exhibit) } end factory :about_page, class: 'Spotlight::AboutPage' do exhibit sequence(:title) { |n| "AboutPage#{n}" } content { '[]' } published { true } end factory :home_page, class: 'Spotlight::HomePage' do exhibit end end
Version data entries
78 entries across 78 versions & 1 rubygems