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