Sha256: c7b9fedd30582cf96376236596d49f1e6aeb2dd79eb33815223a49f7072d30fe

Contents?: true

Size: 349 Bytes

Versions: 11

Compression:

Stored size: 349 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

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-spotlight-2.2.0 spec/factories/exhibits.rb
blacklight-spotlight-2.1.0 spec/factories/exhibits.rb
blacklight-spotlight-2.0.2 spec/factories/exhibits.rb
blacklight-spotlight-2.0.1 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0.rc6 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0.rc5 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0.rc4 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0.rc3 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0.rc2 spec/factories/exhibits.rb
blacklight-spotlight-2.0.0.rc1 spec/factories/exhibits.rb