Browse Source

Remove empty hint texts from questions

pull/1166/head
Kat 3 years ago
parent
commit
56f3850ea2
  1. 1
      app/models/form/common/questions/created_by_id.rb
  2. 1
      app/models/form/common/questions/owning_organisation_id.rb
  3. 1
      app/models/form/lettings/questions/created_by_id.rb
  4. 1
      app/models/form/lettings/questions/location_id.rb
  5. 1
      app/models/form/lettings/questions/renewal.rb
  6. 1
      app/models/form/lettings/questions/rent_type.rb
  7. 1
      app/models/form/sales/questions/armed_forces_spouse.rb
  8. 1
      app/models/form/sales/questions/buyer2_live_in_property.rb
  9. 1
      app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb
  10. 1
      app/models/form/sales/questions/buyer2_working_situation.rb
  11. 1
      app/models/form/sales/questions/buyer_company.rb
  12. 1
      app/models/form/sales/questions/buyer_still_serving.rb
  13. 1
      app/models/form/sales/questions/housing_benefits.rb
  14. 1
      app/models/form/sales/questions/joint_purchase.rb
  15. 1
      app/models/form/sales/questions/mortgage_amount.rb
  16. 1
      app/models/form/sales/questions/mortgage_length.rb
  17. 1
      app/models/form/sales/questions/mortgageused.rb
  18. 1
      app/models/form/sales/questions/person_age_known.rb
  19. 1
      app/models/form/sales/questions/person_known.rb
  20. 1
      app/models/form/sales/questions/person_relationship_to_buyer_1.rb
  21. 1
      app/models/form/sales/questions/previous_postcode.rb
  22. 1
      app/models/form/sales/questions/prevloc.rb
  23. 1
      app/models/form/sales/questions/prevown.rb
  24. 1
      app/models/form/sales/questions/privacy_notice.rb
  25. 1
      app/models/form/sales/questions/property_building_type.rb
  26. 1
      app/models/form/sales/questions/purchase_price.rb
  27. 1
      app/models/form/sales/questions/savings_nk.rb
  28. 2
      spec/models/form/common/questions/created_by_id_spec.rb
  29. 2
      spec/models/form/common/questions/owning_organisation_id_spec.rb
  30. 2
      spec/models/form/lettings/questions/created_by_id_spec.rb
  31. 2
      spec/models/form/lettings/questions/renewal_spec.rb
  32. 2
      spec/models/form/lettings/questions/rent_type_spec.rb
  33. 2
      spec/models/form/sales/questions/armed_forces_spouse_spec.rb
  34. 2
      spec/models/form/sales/questions/buyer2_live_in_property_spec.rb
  35. 2
      spec/models/form/sales/questions/buyer2_relationship_to_buyer1_spec.rb
  36. 2
      spec/models/form/sales/questions/buyer2_working_situation_spec.rb
  37. 2
      spec/models/form/sales/questions/buyer_company_spec.rb
  38. 2
      spec/models/form/sales/questions/buyer_still_serving_spec.rb
  39. 2
      spec/models/form/sales/questions/housing_benefits_spec.rb
  40. 2
      spec/models/form/sales/questions/joint_purchase_spec.rb
  41. 2
      spec/models/form/sales/questions/mortgage_amount_spec.rb
  42. 2
      spec/models/form/sales/questions/mortgage_length_spec.rb
  43. 2
      spec/models/form/sales/questions/mortgageused_spec.rb
  44. 2
      spec/models/form/sales/questions/person_age_known_spec.rb
  45. 2
      spec/models/form/sales/questions/person_known_spec.rb
  46. 2
      spec/models/form/sales/questions/previous_postcode_spec.rb
  47. 2
      spec/models/form/sales/questions/prevown_spec.rb
  48. 2
      spec/models/form/sales/questions/privacy_notice_spec.rb
  49. 2
      spec/models/form/sales/questions/property_building_type_spec.rb
  50. 2
      spec/models/form/sales/questions/purchase_price_spec.rb
  51. 2
      spec/models/form/sales/questions/savings_nk_spec.rb

1
app/models/form/common/questions/created_by_id.rb

@ -4,7 +4,6 @@ class Form::Common::Questions::CreatedById < ::Form::Question
@id = "created_by_id"
@check_answer_label = "User"
@header = "Which user are you creating this log for?"
@hint_text = ""
@type = "select"
end

1
app/models/form/common/questions/owning_organisation_id.rb

@ -4,7 +4,6 @@ class Form::Common::Questions::OwningOrganisationId < ::Form::Question
@id = "owning_organisation_id"
@check_answer_label = "Owning organisation"
@header = "Which organisation owns this log?"
@hint_text = ""
@type = "select"
end

1
app/models/form/lettings/questions/created_by_id.rb

@ -4,7 +4,6 @@ class Form::Lettings::Questions::CreatedById < ::Form::Question
@id = "created_by_id"
@check_answer_label = "Log owner"
@header = "Which user are you creating this log for?"
@hint_text = ""
@type = "select"
end

1
app/models/form/lettings/questions/location_id.rb

@ -3,7 +3,6 @@ class Form::Lettings::Questions::LocationId < ::Form::Question
super("location_id", hsh, page)
@check_answer_label = "Location"
@header = "Which location is this log for?"
@hint_text = ""
@type = "radio"
@answer_options = answer_options
@inferred_answers = {

1
app/models/form/lettings/questions/renewal.rb

@ -4,7 +4,6 @@ class Form::Lettings::Questions::Renewal < ::Form::Question
@id = "renewal"
@check_answer_label = "Property renewal"
@header = "Is this letting a renewal?"
@hint_text = ""
@type = "radio"
@answer_options = ANSWER_OPTIONS
end

1
app/models/form/lettings/questions/rent_type.rb

@ -4,7 +4,6 @@ class Form::Lettings::Questions::RentType < ::Form::Question
@id = "rent_type"
@check_answer_label = "Rent type"
@header = "What is the rent type?"
@hint_text = ""
@type = "radio"
@answer_options = ANSWER_OPTIONS
@conditional_for = { "irproduct_other" => [5] }

1
app/models/form/sales/questions/armed_forces_spouse.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::ArmedForcesSpouse < ::Form::Question
@check_answer_label = "Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?"
@header = "Are any of the buyers a spouse or civil partner of a UK armed forces regular who died in service within the last 2 years?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
end

1
app/models/form/sales/questions/buyer2_live_in_property.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::Buyer2LiveInProperty < ::Form::Question
@check_answer_label = "Will buyer 2 live in the property?"
@header = "Will buyer 2 live in the property?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2
end

1
app/models/form/sales/questions/buyer2_relationship_to_buyer1.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::Buyer2RelationshipToBuyer1 < ::Form::Question
@check_answer_label = "Buyer 2's relationship to buyer 1"
@header = "What is buyer 2's relationship to buyer 1?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2
end

1
app/models/form/sales/questions/buyer2_working_situation.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::Buyer2WorkingSituation < ::Form::Question
@check_answer_label = "Buyer 2's working situation"
@header = "Which of these best describes buyer 2's working situation?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = 2
end

1
app/models/form/sales/questions/buyer_company.rb

@ -4,7 +4,6 @@ class Form::Sales::Questions::BuyerCompany < ::Form::Question
@id = "companybuy"
@check_answer_label = "Company buyer"
@header = "Is the buyer a company?"
@hint_text = ""
@type = "radio"
@answer_options = ANSWER_OPTIONS
end

1
app/models/form/sales/questions/buyer_still_serving.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::BuyerStillServing < ::Form::Question
@check_answer_label = "Are they still serving in the UK armed forces?"
@header = "Is the buyer still serving in the UK armed forces?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
end

1
app/models/form/sales/questions/housing_benefits.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::HousingBenefits < ::Form::Question
@check_answer_label = "Housing-related benefits buyer received before buying this property"
@header = "Was the buyer receiving any of these housing-related benefits immediately before buying this property?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
end

1
app/models/form/sales/questions/joint_purchase.rb

@ -4,7 +4,6 @@ class Form::Sales::Questions::JointPurchase < ::Form::Question
@id = "jointpur"
@check_answer_label = "Joint purchase"
@header = "Is this a joint purchase?"
@hint_text = ""
@type = "radio"
@answer_options = ANSWER_OPTIONS
end

1
app/models/form/sales/questions/mortgage_amount.rb

@ -8,6 +8,5 @@ class Form::Sales::Questions::MortgageAmount < ::Form::Question
@min = 0
@width = 5
@prefix = "£"
@hint_text = ""
end
end

1
app/models/form/sales/questions/mortgage_length.rb

@ -8,6 +8,5 @@ class Form::Sales::Questions::MortgageLength < ::Form::Question
@min = 0
@width = 5
@suffix = " years"
@hint_text = ""
end
end

1
app/models/form/sales/questions/mortgageused.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Mortgageused < ::Form::Question
@header = "Was a mortgage used for the purchase of this property?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/person_age_known.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::PersonAgeKnown < ::Form::Sales::Questions::Person
@header = "Do you know person #{person_display_number}’s age?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
@conditional_for = {
field_for_person("age") => [0],
}

1
app/models/form/sales/questions/person_known.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::PersonKnown < Form::Sales::Questions::Person
@header = "Do you know the details for person #{person_display_number}?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
@hidden_in_check_answers = {
"depends_on" => [
{

1
app/models/form/sales/questions/person_relationship_to_buyer_1.rb

@ -4,7 +4,6 @@ class Form::Sales::Questions::PersonRelationshipToBuyer1 < ::Form::Sales::Questi
@check_answer_label = "Person #{person_display_number}’s relationship to Buyer 1"
@header = "What is Person #{person_display_number}’s relationship to Buyer 1?"
@type = "radio"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@check_answers_card_number = person_index
end

1
app/models/form/sales/questions/previous_postcode.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::PreviousPostcode < ::Form::Question
@header = "Postcode"
@type = "text"
@width = 5
@hint_text = ""
@inferred_check_answers_value = {
"condition" => {
"ppcodenk" => 1,

1
app/models/form/sales/questions/prevloc.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Prevloc < ::Form::Question
@header = "Select a local authority"
@type = "select"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
@inferred_check_answers_value = {
"condition" => {
"previous_la_known" => 0,

1
app/models/form/sales/questions/prevown.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::Prevown < ::Form::Question
@header = "Has the buyer previously owned a property?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/privacy_notice.rb

@ -5,7 +5,6 @@ class Form::Sales::Questions::PrivacyNotice < ::Form::Question
@check_answer_label = "Buyer has seen the privacy notice?"
@header = "Declaration"
@type = "checkbox"
@hint_text = ""
@answer_options = ANSWER_OPTIONS
@guidance_position = GuidancePosition::TOP
@guidance_partial = "privacy_notice_buyer"

1
app/models/form/sales/questions/property_building_type.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::PropertyBuildingType < ::Form::Question
@header = "What type of building is the property?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
end
ANSWER_OPTIONS = {

1
app/models/form/sales/questions/purchase_price.rb

@ -8,6 +8,5 @@ class Form::Sales::Questions::PurchasePrice < ::Form::Question
@min = 0
@width = 5
@prefix = "£"
@hint_text = ""
end
end

1
app/models/form/sales/questions/savings_nk.rb

@ -6,7 +6,6 @@ class Form::Sales::Questions::SavingsNk < ::Form::Question
@header = "Do you know how much the buyer had in savings before they paid any deposit for the property?"
@type = "radio"
@answer_options = ANSWER_OPTIONS
@hint_text = ""
@conditional_for = {
"savings" => [0],
}

2
spec/models/form/common/questions/created_by_id_spec.rb

@ -39,7 +39,7 @@ RSpec.describe Form::Common::Questions::CreatedById, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer options" do

2
spec/models/form/common/questions/owning_organisation_id_spec.rb

@ -40,7 +40,7 @@ RSpec.describe Form::Common::Questions::OwningOrganisationId, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer options" do

2
spec/models/form/lettings/questions/created_by_id_spec.rb

@ -40,7 +40,7 @@ RSpec.describe Form::Lettings::Questions::CreatedById, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer options" do

2
spec/models/form/lettings/questions/renewal_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::Renewal, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/lettings/questions/rent_type_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Lettings::Questions::RentType, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct conditional_for" do

2
spec/models/form/sales/questions/armed_forces_spouse_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::ArmedForcesSpouse, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/buyer2_live_in_property_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::Buyer2LiveInProperty, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/buyer2_relationship_to_buyer1_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::Buyer2RelationshipToBuyer1, type: :model
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/buyer2_working_situation_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::Buyer2WorkingSituation, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/buyer_company_spec.rb

@ -28,7 +28,7 @@ RSpec.describe Form::Sales::Questions::BuyerCompany, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/buyer_still_serving_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::BuyerStillServing, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/housing_benefits_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::HousingBenefits, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/joint_purchase_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::JointPurchase, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/mortgage_amount_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::MortgageAmount, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has correct width" do

2
spec/models/form/sales/questions/mortgage_length_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::MortgageLength, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has correct width" do

2
spec/models/form/sales/questions/mortgageused_spec.rb

@ -43,6 +43,6 @@ RSpec.describe Form::Sales::Questions::Mortgageused, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
end

2
spec/models/form/sales/questions/person_age_known_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::PersonAgeKnown, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
context "with a non joint purchase" do

2
spec/models/form/sales/questions/person_known_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::PersonKnown, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
context "with a non joint purchase" do

2
spec/models/form/sales/questions/previous_postcode_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::PreviousPostcode, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct width" do

2
spec/models/form/sales/questions/prevown_spec.rb

@ -44,6 +44,6 @@ RSpec.describe Form::Sales::Questions::Prevown, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
end

2
spec/models/form/sales/questions/privacy_notice_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::PrivacyNotice, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/property_building_type_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::PropertyBuildingType, type: :model do
end
it "has the correct hint_text" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct answer_options" do

2
spec/models/form/sales/questions/purchase_price_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::PurchasePrice, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has correct width" do

2
spec/models/form/sales/questions/savings_nk_spec.rb

@ -45,7 +45,7 @@ RSpec.describe Form::Sales::Questions::SavingsNk, type: :model do
end
it "has the correct hint" do
expect(question.hint_text).to eq("")
expect(question.hint_text).to be_nil
end
it "has the correct hidden_in_check_answers" do

Loading…
Cancel
Save