add appearance_release_imports factory
This commit is contained in:
@@ -67,5 +67,24 @@ FactoryBot.define do
|
|||||||
appearance_release.contract_template = build(:appearance_release_contract_template)
|
appearance_release.contract_template = build(:appearance_release_contract_template)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
factory :appearance_release_import do
|
||||||
|
person_photo nil
|
||||||
|
|
||||||
|
trait :with_headshot do
|
||||||
|
person_photo do
|
||||||
|
path = Rails.root.join("spec", "fixtures", "files", "person_photo.png")
|
||||||
|
Rack::Test::UploadedFile.new(path, "image/png")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
trait :with_contract do
|
||||||
|
contract do
|
||||||
|
path = Rails.root.join("spec", "fixtures", "files", "AppearanceRelease.pdf")
|
||||||
|
Rack::Test::UploadedFile.new(path, "application/pdf")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user