Sha256: 00ca666c69454c9e4d3a042afccb1e3c370f05554d99cdc93a6b6eee1d0feecd
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
FactoryGirl.define do factory :attachment do |f| f.title 'New Attachment' f.description 'Descriptive description of the new attachment.' f.file { Rack::Test::UploadedFile.new(File.expand_path(File.join(__FILE__, '../../support/uploads/pdf-upload.pdf'))) } factory :image_attachment do |f| f.file { Rack::Test::UploadedFile.new(File.expand_path(File.join(__FILE__, '../../support/uploads/image-upload.png'))) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | spec/factories/attachment.rb |
your_platform-1.0.0 | spec/factories/attachment.rb |
your_platform-0.0.2 | spec/factories/attachment.rb |