|
|
|
@ -57,6 +57,10 @@ RSpec.describe Form::Lettings::Questions::Declaration, type: :model do
|
|
|
|
|
it "uses the expected top guidance partial" do |
|
|
|
|
expect(question.top_guidance_partial).to eq("privacy_notice_tenant") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has check_answers_card_number = 0" do |
|
|
|
|
expect(question.check_answers_card_number).to eq(0) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when the form year is >= 2024" do |
|
|
|
@ -73,6 +77,10 @@ RSpec.describe Form::Lettings::Questions::Declaration, type: :model do
|
|
|
|
|
it "uses the expected top guidance partial" do |
|
|
|
|
expect(question.top_guidance_partial).to eq("privacy_notice_tenant_2024") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has check_answers_card_number nil" do |
|
|
|
|
expect(question.check_answers_card_number).to be_nil |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "returns correct unanswered_error_message" do |
|
|
|
|