From 528bf1b6975df3835502bc69c48d96971b79ac74 Mon Sep 17 00:00:00 2001 From: Shujat Khalid Date: Wed, 20 Sep 2023 15:40:04 +0100 Subject: [PATCH] removed eligibility_skip_questions param from controller and redundant code from spec --- .../support_interface/countries_controller.rb | 1 - spec/system/support_interface/countries_spec.rb | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/controllers/support_interface/countries_controller.rb b/app/controllers/support_interface/countries_controller.rb index aba333010e..7f4bd69862 100644 --- a/app/controllers/support_interface/countries_controller.rb +++ b/app/controllers/support_interface/countries_controller.rb @@ -58,7 +58,6 @@ def country def country_params params.require(:support_interface_country_form).permit( :eligibility_enabled, - :eligibility_skip_questions, :has_regions, :other_information, :qualifications_information, diff --git a/spec/system/support_interface/countries_spec.rb b/spec/system/support_interface/countries_spec.rb index de3abbf21f..d221c83c54 100644 --- a/spec/system/support_interface/countries_spec.rb +++ b/spec/system/support_interface/countries_spec.rb @@ -62,30 +62,30 @@ def given_countries_exist create( :region, :national, - country: create(:country, code: "IE", subject_limited: false), + country: create(:country, code: "IE"), ) create( :region, :national, - country: create(:country, code: "PL", subject_limited: false), + country: create(:country, code: "PL"), ) - united_states = create(:country, code: "US", subject_limited: false) + united_states = create(:country, code: "US") create(:region, name: "Hawaii", country: united_states) create(:region, name: "New York", country: united_states) create( :region, :national, - country: create(:country, code: "ES", subject_limited: false), + country: create(:country, code: "ES"), ) create( :region, name: "British Columbia", - country: create(:country, code: "CA", subject_limited: false), + country: create(:country, code: "CA"), ) create( :region, :national, - country: create(:country, code: "CY", subject_limited: false), + country: create(:country, code: "CY"), ) end