fix(bulk_messages): destroy bulk messages with procedures

This commit is contained in:
Paul Chavard 2021-12-09 12:20:22 +01:00
parent 78784d1c62
commit c7b1dc7f87
5 changed files with 20 additions and 1 deletions

View file

@ -72,6 +72,10 @@ FactoryBot.define do
end
end
trait :with_bulk_message do
groupe_instructeurs { [association(:groupe_instructeur, :default, :with_bulk_message, procedure: instance, strategy: :build)] }
end
trait :with_logo do
logo { Rack::Test::UploadedFile.new('spec/fixtures/files/logo_test_procedure.png', 'image/png') }
end