2015-09-21 17:59:03 +02:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :piece_justificative do
|
|
|
|
trait :rib do
|
2016-04-20 16:51:57 +02:00
|
|
|
content Rack::Test::UploadedFile.new("./spec/support/files/RIB.pdf", 'application/pdf')
|
2015-09-21 17:59:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :contrat do
|
2016-04-20 16:51:57 +02:00
|
|
|
content Rack::Test::UploadedFile.new("./spec/support/files/Contrat.pdf", 'application/pdf')
|
2015-09-21 17:59:03 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|