Sha256: 0fb41e4ef3f4fad77063d227437e0d0887f7ba1ec6157c4bf78068727ef0b098

Contents?: true

Size: 386 Bytes

Versions: 12

Compression:

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.rc4 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.rc3 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.rc2 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.rc1 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.10 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.9 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.8 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.7 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.6 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.5 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.4 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.3 spec/factories/exhibits.rb