From 42ab5f4ff893251462f9d77c89bded416b4af41b Mon Sep 17 00:00:00 2001 From: JG Date: Wed, 15 Jun 2022 11:45:02 +0100 Subject: [PATCH] fixed county --- app/helpers/navigation_items_helper.rb | 2 +- spec/factories/location.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index f2a6f46d8..e09e74f72 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -59,7 +59,7 @@ private path == "/organisations" || path.include?("/organisations/") end - def subnav_supported_housing_scheme_path?(path) + def subnav_supported_housing_schemes_path?(path) path.include?("/organisations") && path.include?("/schemes") || path.include?("/schemes/") end diff --git a/spec/factories/location.rb b/spec/factories/location.rb index ead2ba64d..7afaeb11c 100644 --- a/spec/factories/location.rb +++ b/spec/factories/location.rb @@ -7,6 +7,7 @@ FactoryBot.define do type_of_unit { Faker::Lorem.word } type_of_building { Faker::Lorem.word } wheelchair_adaptation { 0 } + county { Faker::Address.state } scheme end end