spec/factories/pages.rb in blacklight-spotlight-0.0.2 vs spec/factories/pages.rb in blacklight-spotlight-0.0.3

- old
+ new

@@ -2,9 +2,12 @@ factory :feature_page, class: Spotlight::FeaturePage do exhibit Spotlight::Exhibit.default title "Page1" published true end + factory :feature_subpage, parent: :feature_page do + association :parent_page, factory: :feature_page + end factory :about_page, class: Spotlight::AboutPage do exhibit Spotlight::Exhibit.default title "Page1" published true end