Upstream sync

This commit is contained in:
Senad Uka
2020-08-20 06:50:51 +02:00
parent 190ff2854b
commit 41bf88e358
127 changed files with 1399 additions and 565 deletions

View File

@@ -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