From f374b2f591ed168caf30a231abfdfa0734136c50 Mon Sep 17 00:00:00 2001 From: JG Date: Tue, 14 Jun 2022 14:16:39 +0100 Subject: [PATCH] rubocop --- app/helpers/navigation_items_helper.rb | 2 +- spec/features/schemes_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/navigation_items_helper.rb b/app/helpers/navigation_items_helper.rb index e8957e2aa..af1416286 100644 --- a/app/helpers/navigation_items_helper.rb +++ b/app/helpers/navigation_items_helper.rb @@ -34,7 +34,7 @@ module NavigationItemsHelper ] 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("#{count} locations", "/supported-housing/#{current_scheme_id}/locations", false), diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 71869f635..4202cd858 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -134,12 +134,12 @@ RSpec.describe "Supported housing scheme Features" do expect(page).to have_link("#{schemes.first.locations.count} locations") 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) } context "when I click locations link" do before do - click_link ("#{schemes.first.locations.count} locations") + click_link("#{schemes.first.locations.count} locations") end it "shows details of those locations" do