2020-05-31 22:38:19 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
|
factory :contract_template do
|
|
|
|
|
association :project
|
|
|
|
|
|
|
|
|
|
name "Test template"
|
|
|
|
|
release_type "appearance"
|
|
|
|
|
body "This is a test contract template."
|
|
|
|
|
guardian_clause "Is the signer a minor?"
|
|
|
|
|
fee "$0.00"
|
2020-07-14 14:10:30 +02:00
|
|
|
accessibility "public_template"
|
2020-08-20 06:50:51 +02:00
|
|
|
exhibit_a_legal_text ""
|
|
|
|
|
exhibit_b_legal_text ""
|
2020-05-31 22:38:19 +02:00
|
|
|
|
2020-06-18 16:56:11 +02:00
|
|
|
trait :archived do
|
|
|
|
|
archived_at Time.zone.now
|
|
|
|
|
end
|
|
|
|
|
|
2020-07-27 10:17:56 +00:00
|
|
|
trait :with_amendment_clause do
|
|
|
|
|
amendment_clause "Amendment Legal Language"
|
|
|
|
|
end
|
|
|
|
|
|
2020-09-09 05:33:57 +02:00
|
|
|
trait :with_questionnaire_legal_text do
|
|
|
|
|
questionnaire_legal_text "Questionnaire Legal Text"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
trait :with_one_question do
|
|
|
|
|
question_1_text "Is this a question?"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
trait :with_exhibits do
|
|
|
|
|
exhibit_a_legal_text "Exhibit A legal text"
|
|
|
|
|
exhibit_b_legal_text "Exhibit B legal text"
|
|
|
|
|
|
|
|
|
|
exhibit_a_question_text "Exhibit A question text"
|
|
|
|
|
exhibit_b_question_text "Exhibit B question text"
|
|
|
|
|
end
|
|
|
|
|
|
2020-05-31 22:38:19 +02:00
|
|
|
factory :appearance_release_contract_template do
|
|
|
|
|
release_type "appearance"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
factory :talent_release_contract_template do
|
|
|
|
|
release_type "talent"
|
|
|
|
|
end
|
|
|
|
|
|
2020-06-11 16:56:29 +02:00
|
|
|
factory :medical_release_contract_template do
|
|
|
|
|
release_type "medical"
|
|
|
|
|
end
|
|
|
|
|
|
2020-05-31 22:38:19 +02:00
|
|
|
factory :material_release_contract_template do
|
|
|
|
|
release_type "material"
|
|
|
|
|
end
|
|
|
|
|
|
2020-06-23 17:10:53 +02:00
|
|
|
factory :misc_release_contract_template do
|
|
|
|
|
release_type "misc"
|
|
|
|
|
end
|
|
|
|
|
|
2020-05-31 22:38:19 +02:00
|
|
|
factory :location_release_contract_template do
|
|
|
|
|
release_type "location"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
factory :acquired_media_release_contract_template do
|
|
|
|
|
release_type "acquired_media"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|