demarches-normaliennes/spec/factories/piece_justificative.rb
2018-10-16 10:47:41 +02:00

11 lines
324 B
Ruby

FactoryBot.define do
factory :piece_justificative do
trait :rib do
content { Rack::Test::UploadedFile.new("./spec/fixtures/files/RIB.pdf", 'application/pdf') }
end
trait :contrat do
content { Rack::Test::UploadedFile.new("./spec/fixtures/files/Contrat.pdf", 'application/pdf') }
end
end
end