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

Version Path
active_admin_jcrop-0.0.10 spec/factories.rb
active_admin_jcrop-0.0.9 spec/factories.rb
active_admin_jcrop-0.0.7 spec/factories.rb
active_admin_jcrop-0.0.6 spec/factories.rb
active_admin_jcrop-0.0.5 spec/factories.rb
active_admin_jcrop-0.0.4 spec/factories.rb