spec/factories/pages.rb in blacklight-spotlight-1.0.0 vs spec/factories/pages.rb in blacklight-spotlight-1.1.0

- old
+ new

@@ -1,6 +1,6 @@ -FactoryGirl.define do +FactoryBot.define do factory :feature_page, class: 'Spotlight::FeaturePage' do exhibit sequence(:title) { |n| "FeaturePage#{n}" } published true content '[]' @@ -9,10 +9,10 @@ transient do exhibit end title 'SubPage1' content '[]' - after(:build) { |subpage, evaluator| subpage.parent_page = FactoryGirl.create(:feature_page, exhibit: evaluator.exhibit) } + 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 '[]'