Upstream sync
This commit is contained in:
@@ -55,4 +55,28 @@ describe ContractTemplate do
|
||||
expect(contract_template).to have_questionnaire
|
||||
end
|
||||
end
|
||||
|
||||
describe '#has_exhibit_a?' do
|
||||
it 'returns true if the legal text is present' do
|
||||
contract_template = build(:contract_template)
|
||||
|
||||
expect(contract_template).not_to have_exhibit_a
|
||||
|
||||
contract_template.exhibit_a_legal_text = 'Exhibit A legal text'
|
||||
|
||||
expect(contract_template).to have_exhibit_a
|
||||
end
|
||||
end
|
||||
|
||||
describe '#has_exhibit_b?' do
|
||||
it 'returns true if the legal text is present' do
|
||||
contract_template = build(:contract_template)
|
||||
|
||||
expect(contract_template).not_to have_exhibit_b
|
||||
|
||||
contract_template.exhibit_b_legal_text = 'Exhibit A legal text'
|
||||
|
||||
expect(contract_template).to have_exhibit_b
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user