Sha256: 69390668008040535061920c31701c7fad39e2dd0ae3330d138bf4a1ec211615

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

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: exhibit) }

    trait :with_thumbnail do
      association :thumbnail, factory: :exhibit_thumbnail
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/factories/exhibits.rb
blacklight-spotlight-2.4.0 spec/factories/exhibits.rb
blacklight-spotlight-2.3.3 spec/factories/exhibits.rb
blacklight-spotlight-2.3.2 spec/factories/exhibits.rb
blacklight-spotlight-2.3.1 spec/factories/exhibits.rb
blacklight-spotlight-2.3.0 spec/factories/exhibits.rb
blacklight-spotlight-2.2.1 spec/factories/exhibits.rb