demarches-normaliennes/spec/factories/piece_justificative.rb

12 lines
322 B
Ruby
Raw Normal View History

2018-01-23 17:15:42 +01:00
FactoryBot.define do
factory :piece_justificative do
trait :rib do
2018-09-04 16:46:48 +02:00
content { Rack::Test::UploadedFile.new("./spec/support/files/RIB.pdf", 'application/pdf') }
end
trait :contrat do
2018-09-04 16:46:48 +02:00
content { Rack::Test::UploadedFile.new("./spec/support/files/Contrat.pdf", 'application/pdf') }
end
end
end