Sha256: 48cc89107bea876fc9f66c7b265cdb2568887a0a7cee926878903d52502229ab
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true 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 = FactoryBot.create(:featured_image) } end factory :published_search, parent: :search do published { true } end factory :default_search, class: 'Spotlight::Search' do exhibit title { 'All exhibit items' } long_description { 'All items in this exhibit.' } after(:build) { |search| search.thumbnail = FactoryBot.create(:featured_image) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.0.0.rc2 | spec/factories/searches.rb |