Sha256: 1783bf8208578b6c9d87e963742a4e722c4ddf6a6ff5d7fdc6c2da9f5545c5e1

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 Bytes

Contents

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

  factory :default_exhibit, parent: :exhibit do
    default true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-spotlight-0.7.2 spec/factories/exhibits.rb
blacklight-spotlight-0.7.1 spec/factories/exhibits.rb
blacklight-spotlight-0.7.0 spec/factories/exhibits.rb
blacklight-spotlight-0.6.0 spec/factories/exhibits.rb
blacklight-spotlight-0.5.0 spec/factories/exhibits.rb