Sha256: 24762229c69517e8a56da28748e40534b425f3c4f40622038b15d8c8a249bd11

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 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'
    association :upload, factory: :featured_image
    # url { Rack::Test::UploadedFile.new(File.expand_path(File.join('..', 'fixtures', 'avatar.png'), __dir__)) }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/factories/resources.rb
blacklight-spotlight-1.0.0.alpha2 spec/factories/resources.rb
blacklight-spotlight-1.0.0.alpha1 spec/factories/resources.rb
blacklight-spotlight-0.34.1 spec/factories/resources.rb
blacklight-spotlight-0.34.0 spec/factories/resources.rb
blacklight-spotlight-0.33.3 spec/factories/resources.rb
blacklight-spotlight-0.33.2 spec/factories/resources.rb
blacklight-spotlight-0.33.1 spec/factories/resources.rb
blacklight-spotlight-0.33.0 spec/factories/resources.rb