fixes #1905
This commit is contained in:
@@ -22,6 +22,22 @@ FactoryGirl.define do
|
||||
end
|
||||
end
|
||||
|
||||
factory(:exif_jpg_upload) do
|
||||
content_type "image/jpeg"
|
||||
file_path do
|
||||
FileUtils.cp("#{Rails.root}/test/files/test-exif-small.jpg", "#{Rails.root}/tmp")
|
||||
"#{Rails.root}/tmp/test-exif-small.jpg"
|
||||
end
|
||||
end
|
||||
|
||||
factory(:blank_jpg_upload) do
|
||||
content_type "image/jpeg"
|
||||
file_path do
|
||||
FileUtils.cp("#{Rails.root}/test/files/test-blank.jpg", "#{Rails.root}/tmp")
|
||||
"#{Rails.root}/tmp/test-blank.jpg"
|
||||
end
|
||||
end
|
||||
|
||||
factory(:large_jpg_upload) do
|
||||
file_ext "jpg"
|
||||
content_type "image/jpeg"
|
||||
|
||||
Reference in New Issue
Block a user