Sha256: 4c457ef81abe508021be40ca42ce33e378c7b81ab71f11a82fe61592c342a184

Contents?: true

Size: 384 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/factories/exhibits.rb
blacklight-spotlight-3.0.0.alpha.1 spec/factories/exhibits.rb
blacklight-spotlight-2.13.0 spec/factories/exhibits.rb
blacklight-spotlight-2.12.1 spec/factories/exhibits.rb
blacklight-spotlight-2.12.0 spec/factories/exhibits.rb
blacklight-spotlight-2.11.0 spec/factories/exhibits.rb
blacklight-spotlight-2.10.0 spec/factories/exhibits.rb
blacklight-spotlight-2.9.0 spec/factories/exhibits.rb
blacklight-spotlight-2.8.0 spec/factories/exhibits.rb
blacklight-spotlight-2.7.2 spec/factories/exhibits.rb
blacklight-spotlight-2.7.1 spec/factories/exhibits.rb
blacklight-spotlight-2.7.0 spec/factories/exhibits.rb
blacklight-spotlight-2.6.1.1 spec/factories/exhibits.rb
blacklight-spotlight-2.6.1 spec/factories/exhibits.rb
blacklight-spotlight-2.6.0 spec/factories/exhibits.rb
blacklight-spotlight-2.5.2 spec/factories/exhibits.rb
blacklight-spotlight-2.5.1 spec/factories/exhibits.rb
blacklight-spotlight-2.5.0 spec/factories/exhibits.rb