Browse Source

fixed county

pull/662/head
JG 3 years ago
parent
commit
42ab5f4ff8
  1. 2
      app/helpers/navigation_items_helper.rb
  2. 1
      spec/factories/location.rb

2
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

1
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

Loading…
Cancel
Save