From 267032998e7925d87491334094a935003785f893 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Wed, 16 Nov 2022 15:34:06 +0000 Subject: [PATCH] test: update locations helper test to match new field naming and ordering --- spec/helpers/locations_helper_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/helpers/locations_helper_spec.rb b/spec/helpers/locations_helper_spec.rb index c80449ce6..96db265e3 100644 --- a/spec/helpers/locations_helper_spec.rb +++ b/spec/helpers/locations_helper_spec.rb @@ -139,12 +139,12 @@ RSpec.describe LocationsHelper do it "returns correct display attributes" do attributes = [ { name: "Postcode", value: location.postcode }, - { name: "Local authority", value: location.location_admin_district }, { name: "Location name", value: location.name, edit: true }, + { name: "Local authority", value: location.location_admin_district }, { name: "Total number of units at this location", value: location.units }, { name: "Common type of unit", value: location.type_of_unit }, { name: "Mobility type", value: location.mobility_type }, - { name: "Code", value: location.location_code }, + { name: "Location code", value: location.location_code }, { name: "Availability", value: "Active from 1 April 2022" }, { name: "Status", value: :active }, ]