[Fix #3064] Add preview test

This commit is contained in:
Mathieu Magnin 2019-03-27 12:32:38 +01:00
parent 28f9208ce8
commit c550d40e3a
2 changed files with 25 additions and 0 deletions

View file

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