Sha256: a14b262f2e012d2860edb8e32fe9d46e040f09f6ac8a049c5087ff13c2981ce7
Contents?: true
Size: 275 Bytes
Versions: 6
Compression:
Stored size: 275 Bytes
Contents
FactoryGirl.define do factory :post do name "Name of Post" image Rack::Test::UploadedFile.new(File.open(Rails.root.join('spec', 'images', 'example.jpeg'))) #image { fixture_file_upload(Rails.root.join('spec', 'images', 'example.jpeg'), 'image/jpeg') } end end
Version data entries
6 entries across 6 versions & 1 rubygems