Sha256: 6ad54c232462541ee54fe2dfe6d03b76ffe2ac8e32ce6ce3071310b372ed7ca3

Contents?: true

Size: 573 Bytes

Versions: 55

Compression:

Stored size: 573 Bytes

Contents

FactoryGirl.define do
  factory :search, class: Spotlight::Search do
    exhibit
    sequence(:title) { |n| "Exhibit Search #{n}" }
    sequence(:slug) { |n| "Search#{n}" }

    after(:build) { |search| search.thumbnail = FactoryGirl.create(:featured_image) }
  end

  factory :published_search, parent: :search do
    published true
  end

  factory :default_search, class: Spotlight::Search do
    title 'All Exhibit Items'
    long_description 'All items in this exhibit.'

    after(:build) { |search| search.thumbnail = FactoryGirl.create(:featured_image) }
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/factories/searches.rb
blacklight-spotlight-1.0.0.alpha2 spec/factories/searches.rb
blacklight-spotlight-1.0.0.alpha1 spec/factories/searches.rb
blacklight-spotlight-0.34.1 spec/factories/searches.rb
blacklight-spotlight-0.34.0 spec/factories/searches.rb
blacklight-spotlight-0.33.3 spec/factories/searches.rb
blacklight-spotlight-0.33.2 spec/factories/searches.rb
blacklight-spotlight-0.33.1 spec/factories/searches.rb
blacklight-spotlight-0.33.0 spec/factories/searches.rb
blacklight-spotlight-0.32.0 spec/factories/searches.rb
blacklight-spotlight-0.31.0 spec/factories/searches.rb
blacklight-spotlight-0.30.0 spec/factories/searches.rb
blacklight-spotlight-0.29.1 spec/factories/searches.rb
blacklight-spotlight-0.29.0 spec/factories/searches.rb
blacklight-spotlight-0.28.3 spec/factories/searches.rb
blacklight-spotlight-0.28.2 spec/factories/searches.rb
blacklight-spotlight-0.28.1 spec/factories/searches.rb
blacklight-spotlight-0.28.0 spec/factories/searches.rb
blacklight-spotlight-0.27.0 spec/factories/searches.rb
blacklight-spotlight-0.26.1 spec/factories/searches.rb