diff --git a/spec/helpers/organisations_helper_spec.rb b/spec/helpers/organisations_helper_spec.rb index e48b1639c..f8afb3e04 100644 --- a/spec/helpers/organisations_helper_spec.rb +++ b/spec/helpers/organisations_helper_spec.rb @@ -7,8 +7,7 @@ RSpec.describe OrganisationsHelper do it "does not include data protection agreement" do expect(display_organisation_attributes(organisation)).to eq( - [{ editable: true, name: "Name", value: "DLUHC" }, - { editable: false, name: "Organisation ID", value: "ORG#{organisation.id}" }, + [{ editable: false, name: "Organisation ID", value: "ORG#{organisation.id}" }, { editable: true, name: "Address", value: "2 Marsham Street\nLondon\nSW1P 4DF" }, diff --git a/spec/helpers/tag_helper_spec.rb b/spec/helpers/tag_helper_spec.rb index 1886725a2..231323278 100644 --- a/spec/helpers/tag_helper_spec.rb +++ b/spec/helpers/tag_helper_spec.rb @@ -20,7 +20,7 @@ RSpec.describe TagHelper do expect(status_tag("activating_soon", "app-tag--small")).to eq("Activating soon") expect(status_tag("reactivating_soon", "app-tag--small")).to eq("Reactivating soon") expect(status_tag("deactivated", "app-tag--small")).to eq("Deactivated") - expect(status_tag("merged", "app-tag--small")).to eq("Merged") + expect(status_tag("merged", "app-tag--small")).to eq("Merged") end end end diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index c6179b34f..ad9034d35 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -230,24 +230,4 @@ RSpec.describe Organisation, type: :model do end end end - - describe "display_organisation_attributes" do - let(:organisation) { create(:organisation) } - - it "does not include data protection agreement" do - expect(organisation.display_organisation_attributes).to eq( - [ - { editable: false, name: "Organisation ID", value: "ORG#{organisation.id}" }, - { editable: true, - name: "Address", - value: "2 Marsham Street\nLondon\nSW1P 4DF" }, - { editable: true, name: "Telephone number", value: nil }, - { editable: false, name: "Type of provider", value: "Local authority" }, - { editable: false, name: "Registration number", value: "1234" }, - { editable: false, format: :bullet, name: "Rent periods", value: %w[All] }, - { editable: false, name: "Owns housing stock", value: "Yes" }, - ], - ) - end - end end