Fix and test migrate_procedure_logo task

This commit is contained in:
Paul Chavard 2019-08-22 11:12:35 +02:00
parent 5cc3a9eb60
commit d02e0fc556
4 changed files with 70 additions and 5 deletions

View file

@ -46,6 +46,10 @@ FactoryBot.define do
logo_active_storage { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
end
trait :with_legacy_logo do
logo { Rack::Test::UploadedFile.new("./spec/fixtures/files/logo_test_procedure.png", 'image/png') }
end
trait :with_path do
path { generate(:published_path) }
end