Sha256: 3af0f3c97d57f222281389d2ffd9aeb255dcd7821f34f683b0cf780003395d16

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

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-3.0.0.alpha.9 spec/factories/featured_images.rb
blacklight-spotlight-3.0.0.alpha.8 spec/factories/featured_images.rb
blacklight-spotlight-3.0.0.alpha.7 spec/factories/featured_images.rb
blacklight-spotlight-3.0.0.alpha.6 spec/factories/featured_images.rb
blacklight-spotlight-3.0.0.alpha.5 spec/factories/featured_images.rb
blacklight-spotlight-3.0.0.alpha.4 spec/factories/featured_images.rb
blacklight-spotlight-3.0.0.alpha.3 spec/factories/featured_images.rb