Sha256: e774e9f44d3291282c93bf90a55794253b184e4ef9ac9c05ce80af2985ad73d2

Contents?: true

Size: 333 Bytes

Versions: 9

Compression:

Stored size: 333 Bytes

Contents

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/factories/exhibits.rb
blacklight-spotlight-1.0.0.alpha2 spec/factories/exhibits.rb
blacklight-spotlight-1.0.0.alpha1 spec/factories/exhibits.rb
blacklight-spotlight-0.34.1 spec/factories/exhibits.rb
blacklight-spotlight-0.34.0 spec/factories/exhibits.rb
blacklight-spotlight-0.33.3 spec/factories/exhibits.rb
blacklight-spotlight-0.33.2 spec/factories/exhibits.rb
blacklight-spotlight-0.33.1 spec/factories/exhibits.rb
blacklight-spotlight-0.33.0 spec/factories/exhibits.rb