spec/factories/searches.rb in blacklight-spotlight-1.0.0 vs spec/factories/searches.rb in blacklight-spotlight-1.1.0
- old
+ new
@@ -1,20 +1,20 @@
-FactoryGirl.define do
+FactoryBot.define do
factory :search, class: Spotlight::Search do
exhibit
sequence(:title) { |n| "Exhibit Search #{n}" }
sequence(:slug) { |n| "Search#{n}" }
- after(:build) { |search| search.thumbnail = FactoryGirl.create(:featured_image) }
+ after(:build) { |search| search.thumbnail = FactoryBot.create(:featured_image) }
end
factory :published_search, parent: :search do
published true
end
factory :default_search, class: Spotlight::Search do
title 'All Exhibit Items'
long_description 'All items in this exhibit.'
- after(:build) { |search| search.thumbnail = FactoryGirl.create(:featured_image) }
+ after(:build) { |search| search.thumbnail = FactoryBot.create(:featured_image) }
end
end