Sha256: bf471ff124d8202217e66819778555db5b1e62100b0ef782e3c158cda69f5433

Contents?: true

Size: 515 Bytes

Versions: 16

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :exhibit, class: 'Spotlight::Exhibit' do
    sequence(:title) { |n| "Exhibit Title #{n}" }
    published { true }
    after(:build) { |exhibit| exhibit.searches << FactoryBot.build(:default_search, exhibit:) }

    trait :with_thumbnail do
      association :thumbnail, factory: :exhibit_thumbnail
    end
  end
  factory :skinny_exhibit, class: 'Spotlight::Exhibit' do
    sequence(:title) { |n| "Exhibit Title #{n}" }
    published { true }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-spotlight-5.0.0.pre.alpha3 spec/factories/exhibits.rb
blacklight-spotlight-5.0.0.pre.alpha2 spec/factories/exhibits.rb
blacklight-spotlight-5.0.0.pre.alpha1 spec/factories/exhibits.rb
blacklight-spotlight-4.7.1 spec/factories/exhibits.rb
blacklight-spotlight-4.7.0 spec/factories/exhibits.rb
blacklight-spotlight-4.6.1 spec/factories/exhibits.rb
blacklight-spotlight-4.6.0 spec/factories/exhibits.rb
blacklight-spotlight-4.5.0 spec/factories/exhibits.rb
blacklight-spotlight-4.4.0 spec/factories/exhibits.rb
blacklight-spotlight-4.3.6 spec/factories/exhibits.rb
blacklight-spotlight-4.3.5 spec/factories/exhibits.rb
blacklight-spotlight-4.3.4 spec/factories/exhibits.rb
blacklight-spotlight-4.3.3 spec/factories/exhibits.rb
blacklight-spotlight-4.3.2 spec/factories/exhibits.rb
blacklight-spotlight-4.3.1 spec/factories/exhibits.rb
blacklight-spotlight-4.3.0 spec/factories/exhibits.rb