Sha256: af808acdfa0d74d17250e3456c53d0cbb94d37118bf4e5eda0ff9d714fb10b6d

Contents?: true

Size: 390 Bytes

Versions: 42

Compression:

Stored size: 390 Bytes

Contents

FactoryGirl.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'
    url { Rack::Test::UploadedFile.new(File.expand_path(File.join('..', 'fixtures', 'avatar.png'), __dir__)) }
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
blacklight-spotlight-0.32.0 spec/factories/resources.rb
blacklight-spotlight-0.31.0 spec/factories/resources.rb
blacklight-spotlight-0.30.0 spec/factories/resources.rb
blacklight-spotlight-0.29.1 spec/factories/resources.rb
blacklight-spotlight-0.29.0 spec/factories/resources.rb
blacklight-spotlight-0.28.3 spec/factories/resources.rb
blacklight-spotlight-0.28.2 spec/factories/resources.rb
blacklight-spotlight-0.28.1 spec/factories/resources.rb
blacklight-spotlight-0.28.0 spec/factories/resources.rb
blacklight-spotlight-0.27.0 spec/factories/resources.rb
blacklight-spotlight-0.26.1 spec/factories/resources.rb
blacklight-spotlight-0.26.0 spec/factories/resources.rb
blacklight-spotlight-0.25.0 spec/factories/resources.rb
blacklight-spotlight-0.24.0 spec/factories/resources.rb
blacklight-spotlight-0.23.0 spec/factories/resources.rb
blacklight-spotlight-0.22.0 spec/factories/resources.rb
blacklight-spotlight-0.21.0 spec/factories/resources.rb
blacklight-spotlight-0.20.3 spec/factories/resources.rb
blacklight-spotlight-0.20.2 spec/factories/resources.rb
blacklight-spotlight-0.20.1 spec/factories/resources.rb