@ -2,6 +2,7 @@ class Form::Lettings::Pages::VoidDate < ::Form::Page
def initialize(id, hsh, subsection)
super
@id = "void_date"
@header = "Void date"
@depends_on = [{ "is_renewal?" => false }]
end
@ -7,6 +7,6 @@ class Form::Lettings::Questions::Voiddate < ::Form::Question
@type = "date"
@check_answers_card_number = 0
@question_number = 23
@bottom_guidance_partial = "void_date"
@top_guidance_partial = "void_date"
@ -20,7 +20,7 @@ RSpec.describe Form::Lettings::Pages::VoidDate, type: :model do
it "has the correct header" do
expect(page.header).to be_nil
expect(page.header).to eq("Void date")
it "has the correct description" do
@ -31,8 +31,8 @@ RSpec.describe Form::Lettings::Questions::Voiddate, type: :model do
expect(question.question_number).to eq(23)
it "has the correct bottom_guidance_partial" do
expect(question.bottom_guidance_partial).to eq("void_date")
it "has the correct top_guidance_partial" do
expect(question.top_guidance_partial).to eq("void_date")
it "has the correct type" do