Browse Source

Change armed forces question (#101)

pull/95/head
kosiakkatrina 3 years ago committed by GitHub
parent
commit
04a6986827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/admin/case_logs.rb
  2. 10
      app/constants/db_enums.rb
  3. 2
      app/models/bulk_upload.rb
  4. 1
      app/models/case_log.rb
  5. 8
      app/validations/household_validations.rb
  6. 31
      config/forms/2021_2022.json
  7. 5
      db/schema.rb
  8. 12
      docs/api/DLUHC-CORE-Data.v1.json
  9. 6
      spec/features/case_log_spec.rb
  10. 3
      spec/fixtures/complete_case_log.json
  11. 20
      spec/fixtures/forms/test_form.json
  12. 10
      spec/helpers/check_answers_helper_spec.rb
  13. 10
      spec/models/case_log_spec.rb

2
app/admin/case_logs.rb

@ -2,7 +2,7 @@ ActiveAdmin.register CaseLog do
# See permitted parameters documentation: # See permitted parameters documentation:
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
permit_params do permit_params do
permitted = %i[status tenant_code age1 sex1 tenant_ethnic_group tenant_nationality previous_housing_situation armed_forces ecstat1 other_hhmemb relat2 age2 sex2 ecstat2 relat3 age3 sex3 ecstat3 relat4 age4 sex4 ecstat4 relat5 age5 sex5 ecstat5 relat6 age6 sex6 ecstat6 relat7 age7 person_7_gender ecstat7 relat8 age8 sex8 ecstat8 homelessness reason benefit_cap_spare_room_subsidy armed_forces_active armed_forces_injured armed_forces_partner medical_conditions pregnancy accessibility_requirements condition_effects tenancy_code tenancy_start_date starter_tenancy fixed_term_tenancy tenancy_type letting_type letting_provider la previous_postcode property_relet property_vacancy_reason property_reference property_unit_type property_building_type property_number_of_bedrooms property_void_date majorrepairs mrcdate property_number_of_times_relet property_wheelchair_accessible net_income net_income_frequency net_income_uc_proportion hb rent_frequency basic_rent service_charge personal_service_charge support_charge total_charge tshortfall time_lived_in_la time_on_la_waiting_list prevloc property_postcode reasonable_preference reasonable_preference_reason cbl_letting chr_letting cap_letting hbrentshortfall other_reason accessibility_requirements_fully_wheelchair_accessible_housing accessibility_requirements_wheelchair_access_to_essential_rooms accessibility_requirements_level_access_housing accessibility_requirements_other_disability_requirements accessibility_requirements_no_disability_requirements accessibility_requirements_do_not_know accessibility_requirements_prefer_not_to_say condition_effects_vision condition_effects_hearing condition_effects_mobility condition_effects_dexterity condition_effects_stamina condition_effects_learning condition_effects_memory condition_effects_mental_health condition_effects_social_or_behavioral condition_effects_other condition_effects_prefer_not_to_say reasonable_preference_reason_homeless reasonable_preference_reason_unsatisfactory_housing reasonable_preference_reason_medical_grounds reasonable_preference_reason_avoid_hardship reasonable_preference_reason_do_not_know other_tenancy_type override_net_income_validation net_income_known] permitted = %i[status tenant_code age1 sex1 tenant_ethnic_group tenant_nationality previous_housing_situation armedforces ecstat1 other_hhmemb relat2 age2 sex2 ecstat2 relat3 age3 sex3 ecstat3 relat4 age4 sex4 ecstat4 relat5 age5 sex5 ecstat5 relat6 age6 sex6 ecstat6 relat7 age7 person_7_gender ecstat7 relat8 age8 sex8 ecstat8 homelessness reason benefit_cap_spare_room_subsidy armed_forces_active armed_forces_injured medical_conditions pregnancy accessibility_requirements condition_effects tenancy_code tenancy_start_date starter_tenancy fixed_term_tenancy tenancy_type letting_type letting_provider la previous_postcode property_relet property_vacancy_reason property_reference property_unit_type property_building_type property_number_of_bedrooms property_void_date majorrepairs mrcdate property_number_of_times_relet property_wheelchair_accessible net_income net_income_frequency net_income_uc_proportion hb rent_frequency basic_rent service_charge personal_service_charge support_charge total_charge tshortfall time_lived_in_la time_on_la_waiting_list prevloc property_postcode reasonable_preference reasonable_preference_reason cbl_letting chr_letting cap_letting hbrentshortfall other_reason accessibility_requirements_fully_wheelchair_accessible_housing accessibility_requirements_wheelchair_access_to_essential_rooms accessibility_requirements_level_access_housing accessibility_requirements_other_disability_requirements accessibility_requirements_no_disability_requirements accessibility_requirements_do_not_know accessibility_requirements_prefer_not_to_say condition_effects_vision condition_effects_hearing condition_effects_mobility condition_effects_dexterity condition_effects_stamina condition_effects_learning condition_effects_memory condition_effects_mental_health condition_effects_social_or_behavioral condition_effects_other condition_effects_prefer_not_to_say reasonable_preference_reason_homeless reasonable_preference_reason_unsatisfactory_housing reasonable_preference_reason_medical_grounds reasonable_preference_reason_avoid_hardship reasonable_preference_reason_do_not_know other_tenancy_type override_net_income_validation net_income_known]
permitted permitted
end end

10
app/constants/db_enums.rb

@ -699,4 +699,14 @@ module DbEnums
"East Renfrewshire" => "S12000011", "East Renfrewshire" => "S12000011",
} }
end end
def self.armed_forces
{
"A current or former regular in the UK Armed Forces (exc. National Service)" => 1,
"No" => 2,
"Tenant prefers not to say" => 3,
"A current or former reserve in the UK Armed Forces (exc. National Service)" => 4,
"A spouse / civil partner of a UK Armed Forces member who has separated or been bereaved within the last 2 years" => 5,
}
end
end end

2
app/models/bulk_upload.rb

@ -96,7 +96,7 @@ class BulkUpload
ecstat8: row[42], ecstat8: row[42],
ethnic: row[43], ethnic: row[43],
national: row[44], national: row[44],
armed_forces: row[45], armedforces: row[45],
reservist: row[46], reservist: row[46],
preg_occ: row[47], preg_occ: row[47],
hb: row[48], hb: row[48],

1
app/models/case_log.rb

@ -109,6 +109,7 @@ class CaseLog < ApplicationRecord
enum hb: DbEnums.housing_benefit, _suffix: true enum hb: DbEnums.housing_benefit, _suffix: true
enum hbrentshortfall: DbEnums.polar_with_unknown, _suffix: true enum hbrentshortfall: DbEnums.polar_with_unknown, _suffix: true
enum property_relet: DbEnums.polar, _suffix: true enum property_relet: DbEnums.polar, _suffix: true
enum armedforces: DbEnums.armed_forces, _suffix: true
AUTOGENERATED_FIELDS = %w[id status created_at updated_at discarded_at].freeze AUTOGENERATED_FIELDS = %w[id status created_at updated_at discarded_at].freeze

8
app/validations/household_validations.rb

@ -26,21 +26,21 @@ module HouseholdValidations
end end
def validate_armed_forces_injured(record) def validate_armed_forces_injured(record)
if (record.armed_forces == "Yes - a regular" || record.armed_forces == "Yes - a reserve") && record.reservist.blank? if (record.armedforces == "A current or former regular in the UK Armed Forces (exc. National Service)" || record.armedforces == "A current or former reserve in the UK Armed Forces (exc. National Service)") && record.reservist.blank?
record.errors.add :reservist, "You must answer the armed forces injury question if the tenant has served in the armed forces" record.errors.add :reservist, "You must answer the armed forces injury question if the tenant has served in the armed forces"
end end
if (record.armed_forces == "No" || record.armed_forces == "Prefer not to say") && record.reservist.present? if (record.armedforces == "No" || record.armedforces == "Prefer not to say") && record.reservist.present?
record.errors.add :reservist, "You must not answer the armed forces injury question if the tenant has not served in the armed forces or prefer not to say was chosen" record.errors.add :reservist, "You must not answer the armed forces injury question if the tenant has not served in the armed forces or prefer not to say was chosen"
end end
end end
def validate_armed_forces_active_response(record) def validate_armed_forces_active_response(record)
if record.armed_forces == "Yes - a regular" && record.leftreg.blank? if record.armedforces == "A current or former regular in the UK Armed Forces (exc. National Service)" && record.leftreg.blank?
record.errors.add :leftreg, "You must answer the armed forces active question if the tenant has served as a regular in the armed forces" record.errors.add :leftreg, "You must answer the armed forces active question if the tenant has served as a regular in the armed forces"
end end
if record.armed_forces != "Yes - a regular" && record.leftreg.present? if record.armedforces != "A current or former regular in the UK Armed Forces (exc. National Service)" && record.leftreg.present?
record.errors.add :leftreg, "You must not answer the armed forces active question if the tenant has not served as a regular in the armed forces" record.errors.add :leftreg, "You must not answer the armed forces active question if the tenant has not served as a regular in the armed forces"
end end
end end

31
config/forms/2021_2022.json

@ -870,20 +870,21 @@
"header": "Experience of the UK Armed Forces", "header": "Experience of the UK Armed Forces",
"description": "", "description": "",
"questions": { "questions": {
"armed_forces": { "armedforces": {
"header": "Has the tenant ever served in the UK armed forces?", "header": "Is anyone in the household...",
"hint_text": "", "hint_text": "This excludes national service",
"type": "radio", "type": "radio",
"check_answer_label": "Armed Forces", "check_answer_label": "Armed Forces",
"answer_options": { "answer_options": {
"0": "Yes - a regular", "0":"A current or former regular in the UK Armed Forces (exc. National Service)",
"1": "Yes - a reserve", "1":"A current or former reserve in the UK Armed Forces (exc. National Service)",
"2": "No", "2": "A spouse / civil partner of a UK Armed Forces member who has separated or been bereaved within the last 2 years",
"3": "Prefer not to say" "3": "No",
"4": "Tenant prefers not to say"
}, },
"conditional_for": { "conditional_for": {
"leftreg": ["Yes - a regular", "Yes - a reserve"], "leftreg": ["A current or former regular in the UK Armed Forces (exc. National Service)"],
"reservist": ["Yes - a regular", "Yes - a reserve"] "reservist": ["A current or former regular in the UK Armed Forces (exc. National Service)"]
} }
}, },
"leftreg": { "leftreg": {
@ -908,18 +909,6 @@
"1": "No", "1": "No",
"2": "Prefer not to say" "2": "Prefer not to say"
} }
},
"armed_forces_partner": {
"header": "Was the tenant the spouse or civil partner of someone who served in the UK armed forces?",
"hint_text": "",
"type": "radio",
"check_answer_label": "Was the tenant the spouse or civil partner of someone who served in the UK armed forces?",
"answer_options": {
"0": "Yes - was the spouse or civil partner of a UK Armed Forces member and have separated within the last 2 years",
"1": "Yes - was the spouse or civil partner of a UK Armed Forces member who died within the last 2 years",
"2": "No",
"3": "Prefer not to say"
}
} }
} }
}, },

5
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_11_16_102527) do ActiveRecord::Schema.define(version: 2021_11_18_090831) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -25,7 +25,6 @@ ActiveRecord::Schema.define(version: 2021_11_16_102527) do
t.integer "ethnic" t.integer "ethnic"
t.integer "national" t.integer "national"
t.integer "prevten" t.integer "prevten"
t.string "armed_forces"
t.integer "ecstat1" t.integer "ecstat1"
t.integer "hhmemb" t.integer "hhmemb"
t.string "relat2" t.string "relat2"
@ -60,7 +59,6 @@ ActiveRecord::Schema.define(version: 2021_11_16_102527) do
t.integer "underoccupation_benefitcap" t.integer "underoccupation_benefitcap"
t.integer "leftreg" t.integer "leftreg"
t.integer "reservist" t.integer "reservist"
t.string "armed_forces_partner"
t.integer "illness" t.integer "illness"
t.integer "preg_occ" t.integer "preg_occ"
t.string "accessibility_requirements" t.string "accessibility_requirements"
@ -154,6 +152,7 @@ ActiveRecord::Schema.define(version: 2021_11_16_102527) do
t.integer "incref" t.integer "incref"
t.datetime "sale_completion_date" t.datetime "sale_completion_date"
t.datetime "startdate" t.datetime "startdate"
t.integer "armedforces"
t.index ["discarded_at"], name: "index_case_logs_on_discarded_at" t.index ["discarded_at"], name: "index_case_logs_on_discarded_at"
end end

12
docs/api/DLUHC-CORE-Data.v1.json

@ -261,7 +261,7 @@
"ethnic": "White: English/Scottish/Welsh/Northern Irish/British", "ethnic": "White: English/Scottish/Welsh/Northern Irish/British",
"national": "UK national resident in UK", "national": "UK national resident in UK",
"prevten": "Private sector tenancy", "prevten": "Private sector tenancy",
"armed_forces": "Yes - a regular", "armedforces": "A current or former regular in the UK Armed Forces (exc. National Service)",
"ecstat1": "Full-time - 30 hours or more", "ecstat1": "Full-time - 30 hours or more",
"other_hhmemb": 7, "other_hhmemb": 7,
"relat2": "Partner", "relat2": "Partner",
@ -297,7 +297,6 @@
"underoccupation_benefitcap": "No", "underoccupation_benefitcap": "No",
"leftreg": "No", "leftreg": "No",
"reservist": "No", "reservist": "No",
"armed_forces_partner": "No",
"illness": "Yes", "illness": "Yes",
"preg_occ": "No", "preg_occ": "No",
"accessibility_requirements": "No", "accessibility_requirements": "No",
@ -438,7 +437,7 @@
"type": "string", "type": "string",
"minLength": 1 "minLength": 1
}, },
"armed_forces": { "armedforces": {
"type": "string", "type": "string",
"minLength": 1 "minLength": 1
}, },
@ -787,10 +786,6 @@
"type": "string", "type": "string",
"minLength": 1 "minLength": 1
}, },
"armed_forces_partner": {
"type": "string",
"minLength": 1
},
"illness": { "illness": {
"type": "string", "type": "string",
"minLength": 1 "minLength": 1
@ -1050,7 +1045,7 @@
"ethnic", "ethnic",
"national", "national",
"prevten", "prevten",
"armed_forces", "armedforces",
"ecstat1", "ecstat1",
"other_hhmemb", "other_hhmemb",
"relat2", "relat2",
@ -1086,7 +1081,6 @@
"underoccupation_benefitcap", "underoccupation_benefitcap",
"leftreg", "leftreg",
"reservist", "reservist",
"armed_forces_partner",
"illness", "illness",
"preg_occ", "preg_occ",
"accessibility_requirements", "accessibility_requirements",

6
spec/features/case_log_spec.rb

@ -375,13 +375,13 @@ RSpec.describe "Test Features" do
it "shows conditional questions if the required answer is selected and hides it again when a different answer option is selected", js: true do it "shows conditional questions if the required answer is selected and hides it again when a different answer option is selected", js: true do
visit("/case_logs/#{id}/armed_forces") visit("/case_logs/#{id}/armed_forces")
# Something about our styling makes the selenium webdriver think the actual radio buttons are not visible so we allow label click here # Something about our styling makes the selenium webdriver think the actual radio buttons are not visible so we allow label click here
choose("case-log-armed-forces-yes-a-regular-field", allow_label_click: true) choose("case-log-armedforces-a-current-or-former-regular-in-the-uk-armed-forces-exc-national-service-field", allow_label_click: true)
expect(page).to have_selector("#reservist_div") expect(page).to have_selector("#reservist_div")
choose("case-log-reservist-no-field", allow_label_click: true) choose("case-log-reservist-no-field", allow_label_click: true)
expect(page).to have_checked_field("case-log-reservist-no-field", visible: false) expect(page).to have_checked_field("case-log-reservist-no-field", visible: false)
choose("case-log-armed-forces-no-field", allow_label_click: true) choose("case-log-armedforces-no-field", allow_label_click: true)
expect(page).not_to have_selector("#reservist_div") expect(page).not_to have_selector("#reservist_div")
choose("case-log-armed-forces-yes-a-regular-field", allow_label_click: true) choose("case-log-armedforces-a-current-or-former-regular-in-the-uk-armed-forces-exc-national-service-field", allow_label_click: true)
expect(page).to have_unchecked_field("case-log-reservist-no-field", visible: false) expect(page).to have_unchecked_field("case-log-reservist-no-field", visible: false)
end end
end end

3
spec/fixtures/complete_case_log.json vendored

@ -6,7 +6,7 @@
"ethnic": "White: English/Scottish/Welsh/Northern Irish/British", "ethnic": "White: English/Scottish/Welsh/Northern Irish/British",
"national": "UK national resident in UK", "national": "UK national resident in UK",
"prevten": "Private sector tenancy", "prevten": "Private sector tenancy",
"armed_forces": "Yes - a regular", "armedforces": "A current or former regular in the UK Armed Forces (exc. National Service)",
"ecstat1": "Full-time - 30 hours or more", "ecstat1": "Full-time - 30 hours or more",
"other_hhmemb": 7, "other_hhmemb": 7,
"hhmemb": 8, "hhmemb": 8,
@ -43,7 +43,6 @@
"underoccupation_benefitcap": "No", "underoccupation_benefitcap": "No",
"leftreg": "No - they left up to 5 years ago", "leftreg": "No - they left up to 5 years ago",
"reservist": "No", "reservist": "No",
"armed_forces_partner": "No",
"illness": "Yes", "illness": "Yes",
"preg_occ": "No", "preg_occ": "No",
"accessibility_requirements": "No", "accessibility_requirements": "No",

20
spec/fixtures/forms/test_form.json vendored

@ -107,23 +107,26 @@
"armed_forces": { "armed_forces": {
"header": "Experience of the UK Armed Forces", "header": "Experience of the UK Armed Forces",
"questions": { "questions": {
"armed_forces": { "armedforces": {
"header": "Has the tenant ever served in the UK armed forces?", "header": "Is anyone in the household...",
"hint_text": "This excludes national service",
"type": "radio", "type": "radio",
"check_answer_label": "Armed Forces", "check_answer_label": "Armed Forces",
"answer_options": { "answer_options": {
"0": "Yes - a regular", "0":"A current or former regular in the UK Armed Forces (exc. National Service)",
"1": "Yes - a reserve", "1":"A current or former reserve in the UK Armed Forces (exc. National Service)",
"2": "No", "2": "A spouse / civil partner of a UK Armed Forces member who has separated or been bereaved within the last 2 years",
"3": "Prefer not to say" "3": "No",
"4": "Tenant prefers not to say"
}, },
"conditional_for": { "conditional_for": {
"leftreg": ["Yes - a regular", "Yes - a reserve"], "leftreg": ["A current or former regular in the UK Armed Forces (exc. National Service)"],
"reservist": ["Yes - a regular", "Yes - a reserve"] "reservist": ["A current or former regular in the UK Armed Forces (exc. National Service)"]
} }
}, },
"leftreg": { "leftreg": {
"header": "Are they still serving?", "header": "Are they still serving?",
"hint_text": "",
"type": "radio", "type": "radio",
"check_answer_label": "When did they leave the Armed Forces?", "check_answer_label": "When did they leave the Armed Forces?",
"answer_options": { "answer_options": {
@ -135,6 +138,7 @@
}, },
"reservist": { "reservist": {
"header": "Were they seriously injured or ill as a result of their service?", "header": "Were they seriously injured or ill as a result of their service?",
"hint_text": "",
"type": "radio", "type": "radio",
"check_answer_label": "Has anyone in the household been seriously injured or ill as a result of their service in the armed forces?", "check_answer_label": "Has anyone in the household been seriously injured or ill as a result of their service in the armed forces?",
"answer_options": { "answer_options": {

10
spec/helpers/check_answers_helper_spec.rb

@ -11,7 +11,7 @@ RSpec.describe CheckAnswersHelper do
) )
end end
let(:case_log_with_met_radio_condition) do let(:case_log_with_met_radio_condition) do
FactoryBot.create(:case_log, armed_forces: "Yes - a regular", FactoryBot.create(:case_log, armedforces: "A current or former regular in the UK Armed Forces (exc. National Service)",
reservist: "No", reservist: "No",
leftreg: "Yes") leftreg: "Yes")
end end
@ -47,7 +47,7 @@ RSpec.describe CheckAnswersHelper do
end end
it "ignores questions with unmet radio conditions" do it "ignores questions with unmet radio conditions" do
case_log["armed_forces"] = "No" case_log["armedforces"] = "No"
expect(total_answered_questions(subsection_with_radio_conditionals, case_log, form)).to equal(1) expect(total_answered_questions(subsection_with_radio_conditionals, case_log, form)).to equal(1)
end end
@ -134,14 +134,14 @@ RSpec.describe CheckAnswersHelper do
context "conditional questions on the same page" do context "conditional questions on the same page" do
it "it filters out conditional questions that were not displayed" do it "it filters out conditional questions that were not displayed" do
result = total_questions(conditional_page_subsection, case_log, form) result = total_questions(conditional_page_subsection, case_log, form)
expected_keys = %w[armed_forces illness accessibility_requirements condition_effects] expected_keys = %w[armedforces illness accessibility_requirements condition_effects]
expect(result.keys).to eq(expected_keys) expect(result.keys).to eq(expected_keys)
end end
it "it includes conditional questions that were displayed" do it "it includes conditional questions that were displayed" do
case_log["armed_forces"] = "Yes - a regular" case_log["armedforces"] = "A current or former regular in the UK Armed Forces (exc. National Service)"
result = total_questions(conditional_page_subsection, case_log, form) result = total_questions(conditional_page_subsection, case_log, form)
expected_keys = %w[armed_forces leftreg reservist illness accessibility_requirements condition_effects] expected_keys = %w[armedforces leftreg reservist illness accessibility_requirements condition_effects]
expect(result.keys).to eq(expected_keys) expect(result.keys).to eq(expected_keys)
end end
end end

10
spec/models/case_log_spec.rb

@ -84,14 +84,14 @@ RSpec.describe Form, type: :model do
context "armed forces injured validation" do context "armed forces injured validation" do
it "must be answered if tenant was a regular or reserve in armed forces" do it "must be answered if tenant was a regular or reserve in armed forces" do
expect { expect {
CaseLog.create!(armed_forces: "Yes - a regular", CaseLog.create!(armedforces: "A current or former regular in the UK Armed Forces (exc. National Service)",
reservist: nil) reservist: nil)
}.to raise_error(ActiveRecord::RecordInvalid) }.to raise_error(ActiveRecord::RecordInvalid)
end end
it "must be answered if tenant was not a regular or reserve in armed forces" do it "must be answered if tenant was not a regular or reserve in armed forces" do
expect { expect {
CaseLog.create!(armed_forces: "No", CaseLog.create!(armedforces: "No",
reservist: "Yes") reservist: "Yes")
}.to raise_error(ActiveRecord::RecordInvalid) }.to raise_error(ActiveRecord::RecordInvalid)
end end
@ -223,14 +223,14 @@ RSpec.describe Form, type: :model do
context "armed forces active validation" do context "armed forces active validation" do
it "must be answered if ever served in the forces as a regular" do it "must be answered if ever served in the forces as a regular" do
expect { expect {
CaseLog.create!(armed_forces: "Yes - a regular", CaseLog.create!(armedforces: "A current or former regular in the UK Armed Forces (exc. National Service)",
leftreg: nil) leftreg: nil)
}.to raise_error(ActiveRecord::RecordInvalid) }.to raise_error(ActiveRecord::RecordInvalid)
end end
it "must not be answered if not ever served as a regular" do it "must not be answered if not ever served as a regular" do
expect { expect {
CaseLog.create!(armed_forces: "No", CaseLog.create!(armedforces: "No",
leftreg: "Yes") leftreg: "Yes")
}.to raise_error(ActiveRecord::RecordInvalid) }.to raise_error(ActiveRecord::RecordInvalid)
end end
@ -238,7 +238,7 @@ RSpec.describe Form, type: :model do
# Crossover over tests here as injured must be answered as well for no error # Crossover over tests here as injured must be answered as well for no error
it "must be answered if ever served in the forces as a regular" do it "must be answered if ever served in the forces as a regular" do
expect do expect do
CaseLog.create!(armed_forces: "Yes - a regular", CaseLog.create!(armedforces: "A current or former regular in the UK Armed Forces (exc. National Service)",
leftreg: "Yes", leftreg: "Yes",
reservist: "Yes") reservist: "Yes")
end end

Loading…
Cancel
Save