Sha256: edce28cbbdc88e255e89f5c7bef752db6a7bfdd2b2ecbc81b6e6a7925d5db675

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

FactoryGirl.define do
  
  factory :promotion_cover_image, class: Image::CoverImage do
    image { Rack::Test::UploadedFile.new('spec/dummy/spec/factories/test.jpg', 'image.png') }
    association :imageable, factory: :published_promotion
  end

  factory :oversized_promotion_cover_image, class: Image::CoverImage do
    image { Rack::Test::UploadedFile.new('spec/dummy/spec/factories/test.jpg', 'image.png') }
    association :imageable, factory: :published_promotion
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dhatu-0.1.13 spec/dummy/spec/factories/promotion_cover_image.rb
dhatu-0.1.12 spec/dummy/spec/factories/promotion_cover_image.rb