Sha256: 1d44230545433732858a3e62b1536495f5eec90b0b71027b433eefca941c64ad
Contents?: true
Size: 676 Bytes
Versions: 17
Compression:
Stored size: 676 Bytes
Contents
FactoryBot.define do factory :feature_page, class: 'Spotlight::FeaturePage' do exhibit sequence(:title) { |n| "FeaturePage#{n}" } 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
17 entries across 17 versions & 1 rubygems