From a9abe8d13d9021132a976bfc47c2ea6392d3a316 Mon Sep 17 00:00:00 2001 From: JG Date: Wed, 29 Jun 2022 13:25:35 +0100 Subject: [PATCH] removed total units --- app/models/scheme.rb | 2 -- app/views/schemes/new.html.erb | 2 +- spec/features/schemes_spec.rb | 5 +---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/models/scheme.rb b/app/models/scheme.rb index 92b9618bd..af3950360 100644 --- a/app/models/scheme.rb +++ b/app/models/scheme.rb @@ -99,7 +99,6 @@ class Scheme < ApplicationRecord { name: "Managed by", value: organisation.name }, { name: "Type of scheme", value: scheme_type }, { name: "Registered under Care Standards Act 2000", value: registered_under_care_act }, - { name: "Total number of units", value: total_units }, ] end @@ -137,7 +136,6 @@ class Scheme < ApplicationRecord { name: "Managed by", value: organisation.name }, { name: "Type of scheme", value: scheme_type }, { name: "Registered under Care Standards Act 2000", value: registered_under_care_act }, - { name: "Total number of units", value: total_units }, { name: "Primary client group", value: primary_client_group }, { name: "Secondary client group", value: secondary_client_group }, { name: "Level of support given", value: support_type }, diff --git a/app/views/schemes/new.html.erb b/app/views/schemes/new.html.erb index 6b0045be2..194f61c3e 100644 --- a/app/views/schemes/new.html.erb +++ b/app/views/schemes/new.html.erb @@ -42,7 +42,7 @@ answer_options, :id, :name, - label: { text: "Which organisation manages this scheme", size: "m" }, + label: { text: "Which organisation manages this scheme?", size: "m" }, "data-controller": %w[accessible-autocomplete conditional-filter] %> <% end %> diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 02a5627d0..62107aaac 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -165,7 +165,6 @@ RSpec.describe "Schemes scheme Features" do expect(page).to have_content(schemes.first.sensitive) expect(page).to have_content(schemes.first.scheme_type) expect(page).to have_content(schemes.first.registered_under_care_act) - expect(page).to have_content(schemes.first.total_units) expect(page).to have_content(schemes.first.primary_client_group) expect(page).to have_content(schemes.first.secondary_client_group) expect(page).to have_content(schemes.first.support_type) @@ -244,7 +243,6 @@ RSpec.describe "Schemes scheme Features" do expect(page).to have_content "Which organisation manages this scheme?" expect(page).to have_content "What is this type of scheme?" expect(page).to have_content "Is this scheme registered under the Care Standards Act 2000?" - expect(page).to have_content "Total number of units" end context "when I fill in scheme details and I press save I see primary client group section" do @@ -255,8 +253,8 @@ RSpec.describe "Schemes scheme Features" do check "This scheme contains confidential information" choose "Direct access hostel" choose "Yes – registered care home providing nursing care" - fill_in "Total number of units", with: 1 select organisation.name, from: "scheme-organisation-id-field" + select organisation.name, from: "scheme-stock-owning-organisation-id-field" click_button "Save and continue" end @@ -276,7 +274,6 @@ RSpec.describe "Schemes scheme Features" do expect(page).to have_content "Which organisation manages this scheme" expect(page).to have_content "What is this type of scheme?" expect(page).to have_content "Is this scheme registered under the Care Standards Act 2000?" - expect(page).to have_content "Total number of units" end context "when we amend scheme details" do