Sha256: 0efcb29c450d5c14bea39b7face4c4b727f0cea1994aff98ae97ef33602b8a8c

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

FactoryBot.define do
  factory :featured_image, class: Spotlight::FeaturedImage do
    image { Rack::Test::UploadedFile.new(File.expand_path(File.join('..', 'fixtures', 'avatar.png'), __dir__)) }
    iiif_tilesource { 'https://exhibits-stage.stanford.edu/images/78' }
  end

  factory :masthead, class: Spotlight::Masthead do
    image { Rack::Test::UploadedFile.new(File.expand_path(File.join('..', 'fixtures', 'avatar.png'), __dir__)) }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/factories/featured_images.rb
blacklight-spotlight-2.4.0 spec/factories/featured_images.rb
blacklight-spotlight-2.3.3 spec/factories/featured_images.rb
blacklight-spotlight-2.3.2 spec/factories/featured_images.rb
blacklight-spotlight-2.3.1 spec/factories/featured_images.rb
blacklight-spotlight-2.3.0 spec/factories/featured_images.rb
blacklight-spotlight-2.2.1 spec/factories/featured_images.rb