diff --git a/spec/factories/commentaire.rb b/spec/factories/commentaire.rb index dc092a50d..360a4b05e 100644 --- a/spec/factories/commentaire.rb +++ b/spec/factories/commentaire.rb @@ -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 diff --git a/spec/factories/procedure.rb b/spec/factories/procedure.rb index 8c62169b3..2e5bd901d 100644 --- a/spec/factories/procedure.rb +++ b/spec/factories/procedure.rb @@ -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