diff --git a/app/helpers/tag_helper.rb b/app/helpers/tag_helper.rb index 08b6180b3..c7c5c1cbe 100644 --- a/app/helpers/tag_helper.rb +++ b/app/helpers/tag_helper.rb @@ -7,6 +7,8 @@ module TagHelper in_progress: "In progress", completed: "Completed", active: "Active", + deactivating_soon: "Deactivating soon", + deactivated: "Deactivated" }.freeze COLOUR = { @@ -15,6 +17,8 @@ module TagHelper in_progress: "blue", completed: "green", active: "green", + deactivating_soon: "yellow", + deactivated: "grey" }.freeze def status_tag(status, classes = []) diff --git a/spec/helpers/locations_helper_spec.rb b/spec/helpers/locations_helper_spec.rb index 9a4550912..f2a5a67a5 100644 --- a/spec/helpers/locations_helper_spec.rb +++ b/spec/helpers/locations_helper_spec.rb @@ -60,7 +60,7 @@ RSpec.describe LocationsHelper do { name: "Mobility type", value: location.mobility_type }, { name: "Code", value: location.location_code }, { name: "Availability", value: "Available from 8 August 2022" }, - { name: "Status", value: "active" }, + { name: "Status", value: :active }, ] expect(display_attributes(location)).to eq(attributes)