From 5bafda661951fa027970e3002c94000badf0f468 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 17 Jul 2019 14:24:48 +0200 Subject: [PATCH] factories: fix unmatching MIME type in fixtures --- spec/factories/commentaire.rb | 2 +- spec/factories/procedure.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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