Skip to content

Commit

Permalink
removed eligibility_skip_questions param from controller and redundan…
Browse files Browse the repository at this point in the history
…t code from spec
  • Loading branch information
syed87 committed Sep 25, 2023
1 parent ca9f357 commit 528bf1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/controllers/support_interface/countries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 6 additions & 6 deletions spec/system/support_interface/countries_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 528bf1b

Please sign in to comment.