Sha256: 74f10e11609ef923aa4273b5359dfe7fa6d769f27dee001f0a4d2c41fe0691d4

Contents?: true

Size: 488 Bytes

Versions: 62

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :resource, class: 'Spotlight::Resource' do
    exhibit
    type { 'Spotlight::Resource' }
    url { 'some url' }
  end
  factory :uploaded_resource, class: 'Spotlight::Resources::Upload', parent: :resource do
    type { 'Spotlight::Resources::Upload' }
    association :upload, factory: :featured_image
    # url { Rack::Test::UploadedFile.new(File.expand_path(File.join('..', 'fixtures', 'avatar.png'), __dir__)) }
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.4 spec/factories/resources.rb
blacklight-spotlight-3.0.0.alpha.3 spec/factories/resources.rb