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