expect(question.hint_text).toeq("The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.")
expect(question.hint_text).toeq("The ’lead’ or ’main’ tenant is the person in the household who does the most paid work. If several people do the same amount of paid work, the lead tenant is whoever is the oldest.")
@ -48,10 +40,6 @@ RSpec.describe Form::Lettings::Questions::EthnicWhite, type: :model do
"3"=>{"value"=>"Any other White background"},
})
end
it"has the correct hint_text"do
expect(question.hint_text).toeq("The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.")
end
end
context"with 2024/25 form"do
@ -68,10 +56,6 @@ RSpec.describe Form::Lettings::Questions::EthnicWhite, type: :model do
expect(question.hint_text).toeq("The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.")
expect(question.hint_text).toeq("This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth.")
expect(question.hint_text).toeq("This is about when the tenant is in their new let. If they are unsure about the situation for their new let and their financial and working situation hasn’t changed significantly, answer based on what housing-related benefits they currently receive.")
expect(question.hint_text).toeq("Check the following:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>")
expect(question.hint_text).toeq("Check the following:<ul class=\"govuk-body-l app-panel--interruption\"><li>the decimal point</li><li>the frequency, for example every week or every calendar month</li><li>the rent type is correct, for example affordable or social rent</li></ul>")
expect(question.hint_text).toeq("If the lead tenant is a dual national of the United Kingdom and another country, enter United Kingdom. If they are a dual national of two other countries, the tenant should decide which country to enter.")
expect(question.hint_text).toeq("The lead tenant is the person in the household who does the most paid work. If several people do the same paid work, the lead tenant is whoever is the oldest.")
@ -13,14 +13,6 @@ RSpec.describe Form::Lettings::Questions::Offered, type: :model do
expect(question.id).toeq"offered"
end
it"has the correct header"do
expect(question.header).toeq"How many times was the property offered between becoming vacant and this letting?"
end
it"has the correct check_answer_label"do
expect(question.check_answer_label).toeq"Times previously offered since becoming available."
end
it"has the correct type"do
expect(question.type).toeq"numeric"
end
@ -37,8 +29,4 @@ RSpec.describe Form::Lettings::Questions::Offered, type: :model do
it"is not marked as derived"do
expect(question.derived?(nil)).tobefalse
end
it"has the correct hint_text"do
expect(question.hint_text).toeq"Do not include the offer that led to this letting. This is after the last tenancy ended. If the property is being offered for let for the first time, enter 0."
expect(question.hint_text).toeq("This should be however they personally choose to identify from the options below. This may or may not be the same as their biological sex or the sex they were assigned at birth.")
expect(question.hint_text).toeq("This is the tenant’s last long-standing home. It is where the tenant was living before any period in temporary accommodation, sleeping rough or otherwise homeless.")
expect(question.hint_text).toeq("This is the tenant’s last long-standing home. It is where the tenant was living before any period in temporary accommodation, sleeping rough or otherwise homeless.")
@ -23,14 +23,6 @@ RSpec.describe Form::Lettings::Questions::Reason, type: :model do
expect(question.id).toeq("reason")
end
it"has the correct header"do
expect(question.header).toeq("What is the tenant’s main reason for the household leaving their last settled home?")
end
it"has the correct check_answer_label"do
expect(question.check_answer_label).toeq("Reason for leaving last settled home")
end
it"has the correct type"do
expect(question.type).toeq("radio")
end
@ -48,10 +40,6 @@ RSpec.describe Form::Lettings::Questions::Reason, type: :model do
end
context"with 2023/24 form"do
it"has the correct hint"do
expect(question.hint_text).toeq("The tenant’s ‘last settled home’ is their last long-standing home. For tenants who were in temporary accommodation or sleeping rough, their last settled home is where they were living previously.")
end
it"has the correct answer_options"do
expect(question.answer_options).toeq({
"40"=>{"value"=>"End of assured shorthold tenancy (no fault)"},
@ -99,10 +87,6 @@ RSpec.describe Form::Lettings::Questions::Reason, type: :model do
expect(question.hint_text).toeq("The tenant’s ‘last settled home’ is their last long-standing home. For tenants who were in temporary accommodation, sleeping rough or otherwise homeless, their last settled home is where they were living previously.")
end
it"has the correct answer_options"do
expect(question.answer_options).toeq({
"50"=>{"value"=>"End of social or private sector tenancy - no fault"},
expect(question.hint_text).toeq("Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority.")
expect(question.hint_text).toeq("Households may be given ‘reasonable preference’ for social housing under one or more specific categories by the local authority. This is also known as ‘priority need’.")