From 0d9231d4dd53adc7edc9ca808cb2d1c7f5ba1a6c Mon Sep 17 00:00:00 2001 From: Kat <54268893+kosiakkatrina@users.noreply.github.com> Date: Tue, 14 Jan 2025 16:48:29 +0000 Subject: [PATCH] lint --- spec/helpers/locations_helper_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/helpers/locations_helper_spec.rb b/spec/helpers/locations_helper_spec.rb index 3d9eb90b5..0a8eed96f 100644 --- a/spec/helpers/locations_helper_spec.rb +++ b/spec/helpers/locations_helper_spec.rb @@ -374,9 +374,10 @@ RSpec.describe LocationsHelper do LocalAuthorityLink.create!(local_authority_id: LocalAuthority.find_by(code: "E07000030").id, linked_local_authority_id: LocalAuthority.find_by(code: "E06000063").id) LocalAuthorityLink.create!(local_authority_id: LocalAuthority.find_by(code: "E08000016").id, linked_local_authority_id: LocalAuthority.find_by(code: "E08000038").id) end + context "when the location LA's have changed" do let(:location) { FactoryBot.create(:location, location_code: "E07000030") } - + it "displays a timeline of LAs" do expect(formatted_local_authority_timeline(location)).to eq("Eden (until 31 March 2023)\nCumberland (1 April 2023 - present)") end