|
|
|
@ -14,6 +14,8 @@ RSpec.describe Form::Lettings::Questions::Waityear, type: :model do |
|
|
|
allow(form).to receive(:start_year_2025_or_later?).and_return(false) |
|
|
|
allow(form).to receive(:start_year_2025_or_later?).and_return(false) |
|
|
|
allow(page).to receive(:subsection).and_return(subsection) |
|
|
|
allow(page).to receive(:subsection).and_return(subsection) |
|
|
|
allow(subsection).to receive(:form).and_return(form) |
|
|
|
allow(subsection).to receive(:form).and_return(form) |
|
|
|
|
|
|
|
allow(form).to receive(:start_year_2025_or_later?).and_return(true) |
|
|
|
|
|
|
|
allow(form).to receive(:start_year_2025_or_later?).and_return(true) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "has correct page" do |
|
|
|
it "has correct page" do |
|
|
|
@ -44,10 +46,6 @@ RSpec.describe Form::Lettings::Questions::Waityear, type: :model do |
|
|
|
expect(question.check_answers_card_number).to eq(0) |
|
|
|
expect(question.check_answers_card_number).to eq(0) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
|
|
|
|
allow(form).to receive(:start_year_2025_or_later?).and_return(true) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "has the correct answer_options" do |
|
|
|
it "has the correct answer_options" do |
|
|
|
expect(question.answer_options).to eq({ |
|
|
|
expect(question.answer_options).to eq({ |
|
|
|
"13" => { "value" => "Household not on the housing register (or waiting list) in this area" }, |
|
|
|
"13" => { "value" => "Household not on the housing register (or waiting list) in this area" }, |
|
|
|
|