|
|
|
@ -59,6 +59,7 @@ RSpec.describe Form::Subsection, type: :model do
|
|
|
|
|
|
|
|
|
|
context "with optional fields" do |
|
|
|
|
subject(:subsection) { described_class.new(subsection_id, subsection_definition, section) } |
|
|
|
|
|
|
|
|
|
let(:section_id) { "tenancy_and_property" } |
|
|
|
|
let(:section_definition) { form.form_definition["sections"][section_id] } |
|
|
|
|
let(:section) { Form::Section.new(section_id, section_definition, form) } |
|
|
|
|