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