demarches-normaliennes/spec/factories/commentaire.rb
2020-08-18 15:57:36 +02:00

11 lines
266 B
Ruby

FactoryBot.define do
factory :commentaire do
association :dossier, :en_construction
body { 'plop' }
trait :with_file do
piece_jointe { Rack::Test::UploadedFile.new('spec/fixtures/files/logo_test_procedure.png', 'image/png') }
end
end
end