Browse Source

rubocop

pull/662/head
JG 3 years ago
parent
commit
f374b2f591
  1. 2
      app/helpers/navigation_items_helper.rb
  2. 2
      spec/features/schemes_spec.rb

2
app/helpers/navigation_items_helper.rb

@ -34,7 +34,7 @@ module NavigationItemsHelper
] ]
end end
def scheme_items(path, current_scheme_id, count) def scheme_items(_path, current_scheme_id, count)
[ [
NavigationItem.new("Scheme", "/supported-housing/#{current_scheme_id}", true), NavigationItem.new("Scheme", "/supported-housing/#{current_scheme_id}", true),
NavigationItem.new("#{count} locations", "/supported-housing/#{current_scheme_id}/locations", false), NavigationItem.new("#{count} locations", "/supported-housing/#{current_scheme_id}/locations", false),

2
spec/features/schemes_spec.rb

@ -134,7 +134,7 @@ RSpec.describe "Supported housing scheme Features" do
expect(page).to have_link("#{schemes.first.locations.count} locations") expect(page).to have_link("#{schemes.first.locations.count} locations")
end end
context "there are locations that belong to the selected scheme" do context "when there are locations that belong to the selected scheme" do
let!(:locations) { FactoryBot.create_list(:location, 3, scheme: schemes.first) } let!(:locations) { FactoryBot.create_list(:location, 3, scheme: schemes.first) }
context "when I click locations link" do context "when I click locations link" do

Loading…
Cancel
Save