From bf069b957494853bf28bdcc44f7fb01094fe2f41 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 28 Jul 2022 14:56:35 +0100 Subject: [PATCH] more tests fixed - part 3 --- spec/helpers/tab_nav_helper_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/helpers/tab_nav_helper_spec.rb b/spec/helpers/tab_nav_helper_spec.rb index aa93b839d..bc82629a9 100644 --- a/spec/helpers/tab_nav_helper_spec.rb +++ b/spec/helpers/tab_nav_helper_spec.rb @@ -1,5 +1,7 @@ require "rails_helper" +using RefinementTest + RSpec.describe TabNavHelper do let(:organisation) { FactoryBot.create(:organisation) } let(:user) { FactoryBot.build(:user, organisation:) } @@ -23,7 +25,7 @@ RSpec.describe TabNavHelper do describe "#location_cell" do it "returns the location link to the postcode with optional name" do link = "/schemes/#{location.scheme.id}/locations/#{location.id}/edit" - expected_html = "#{location.postcode}\nLocation #{location.name}" + expected_html = "#{location.postcode.formatted_postcode}\nLocation #{location.name}" expect(location_cell(location, link)).to match(expected_html) end end