Sha256: 5f6e9ad4a0d386103bbb65d43b547b88c79031a8300777c193a3ce6490cbc078
Contents?: true
Size: 700 Bytes
Versions: 7
Compression:
Stored size: 700 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
7 entries across 7 versions & 1 rubygems