Sha256: 963bf8ef6933826413091eafab6594e10762d900a6d19302e36fe1e127d2947a

Contents?: true

Size: 441 Bytes

Versions: 17

Compression:

Stored size: 441 Bytes

Contents

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

17 entries across 17 versions & 1 rubygems

Version Path
blacklight-spotlight-2.2.0 spec/factories/resources.rb
blacklight-spotlight-2.1.0 spec/factories/resources.rb
blacklight-spotlight-2.0.2 spec/factories/resources.rb
blacklight-spotlight-2.0.1 spec/factories/resources.rb
blacklight-spotlight-2.0.0 spec/factories/resources.rb
blacklight-spotlight-2.0.0.rc6 spec/factories/resources.rb
blacklight-spotlight-2.0.0.rc5 spec/factories/resources.rb
blacklight-spotlight-2.0.0.rc4 spec/factories/resources.rb
blacklight-spotlight-2.0.0.rc3 spec/factories/resources.rb
blacklight-spotlight-2.0.0.rc2 spec/factories/resources.rb
blacklight-spotlight-2.0.0.rc1 spec/factories/resources.rb
blacklight-spotlight-1.5.1 spec/factories/resources.rb
blacklight-spotlight-1.4.1 spec/factories/resources.rb
blacklight-spotlight-1.4.0 spec/factories/resources.rb
blacklight-spotlight-1.3.0 spec/factories/resources.rb
blacklight-spotlight-1.2.0 spec/factories/resources.rb
blacklight-spotlight-1.1.0 spec/factories/resources.rb