spec/factories/pages.rb in blacklight-spotlight-0.9.1 vs spec/factories/pages.rb in blacklight-spotlight-0.9.2

- old
+ new

@@ -1,7 +1,7 @@ FactoryGirl.define do - factory :feature_page, class: Spotlight::FeaturePage do + factory :feature_page, class: 'Spotlight::FeaturePage' do exhibit sequence(:title) { |n| "FeaturePage#{n}" } published true content '[]' end @@ -11,16 +11,16 @@ 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 + factory :about_page, class: 'Spotlight::AboutPage' do exhibit sequence(:title) { |n| "AboutPage#{n}" } content '[]' published true end - factory :home_page, class: Spotlight::HomePage do + factory :home_page, class: 'Spotlight::HomePage' do exhibit end end