factories: fix unmatching MIME type in fixtures

This commit is contained in:
Pierre de La Morinerie 2019-07-17 14:24:48 +02:00
parent 9b68bb344e
commit 5bafda6619
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ FactoryBot.define do
end
trait :with_file do
file { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'application/pdf') }
file { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
end
end
end

View file

@ -42,7 +42,7 @@ FactoryBot.define do
end
trait :with_logo do
logo { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'application/pdf') }
logo { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
end
trait :with_path do