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