Sha256: acb5392fce3723a2ced0800e8851e2808a12b9a413ea6c3977a8de3466e46222
Contents?: true
Size: 672 Bytes
Versions: 5
Compression:
Stored size: 672 Bytes
Contents
FactoryGirl.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 = FactoryGirl.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
5 entries across 5 versions & 1 rubygems