Sha256: 74f10e11609ef923aa4273b5359dfe7fa6d769f27dee001f0a4d2c41fe0691d4

Contents?: true

Size: 488 Bytes

Versions: 57

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

57 entries across 57 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 spec/factories/resources.rb
blacklight-spotlight-4.3.5 spec/factories/resources.rb
blacklight-spotlight-4.3.4 spec/factories/resources.rb
blacklight-spotlight-4.3.3 spec/factories/resources.rb
blacklight-spotlight-4.3.2 spec/factories/resources.rb
blacklight-spotlight-4.3.1 spec/factories/resources.rb
blacklight-spotlight-4.3.0 spec/factories/resources.rb
blacklight-spotlight-4.2.0 spec/factories/resources.rb
blacklight-spotlight-4.1.2 spec/factories/resources.rb
blacklight-spotlight-4.1.1 spec/factories/resources.rb
blacklight-spotlight-4.1.0 spec/factories/resources.rb
blacklight-spotlight-4.0.3 spec/factories/resources.rb
blacklight-spotlight-4.0.2 spec/factories/resources.rb
blacklight-spotlight-4.0.1 spec/factories/resources.rb
blacklight-spotlight-4.0.0 spec/factories/resources.rb
blacklight-spotlight-3.6.0.beta10 spec/factories/resources.rb
blacklight-spotlight-3.6.0.beta9 spec/factories/resources.rb
blacklight-spotlight-3.6.0.beta8 spec/factories/resources.rb
blacklight-spotlight-3.5.0.4 spec/factories/resources.rb
blacklight-spotlight-3.6.0.beta7 spec/factories/resources.rb