Browse Source

fixed typos etc

pull/656/head
JG 3 years ago
parent
commit
293d2b9c17
  1. 4
      app/models/scheme.rb
  2. 4
      spec/features/schemes_spec.rb

4
app/models/scheme.rb

@ -8,14 +8,14 @@ class Scheme < ApplicationRecord
SCHEME_TYPE = { SCHEME_TYPE = {
0 => "Missings", 0 => "Missings",
4 => "Foyer", 4 => "Foyer",
5 => "D, L, Airect Access Hostel", 5 => "Direct Access Hostel",
6 => "Other Supported Housing", 6 => "Other Supported Housing",
7 => "Housing for older people", 7 => "Housing for older people",
}.freeze }.freeze
PRIMARY_CLIENT_GROUP = { PRIMARY_CLIENT_GROUP = {
"O" => "Homeless families with support needs", "O" => "Homeless families with support needs",
"H" => "Offenders &amp; people at risk of offending", "H" => "Offenders & people at risk of offending",
"M" => "Older people with support needs", "M" => "Older people with support needs",
"L" => "People at risk of domestic violence", "L" => "People at risk of domestic violence",
"A" => "People with a physical or sensory disability", "A" => "People with a physical or sensory disability",

4
spec/features/schemes_spec.rb

@ -2,7 +2,7 @@ require "rails_helper"
RSpec.describe "Supported housing scheme Features" do RSpec.describe "Supported housing scheme Features" do
context "when viewing list of schemes" do context "when viewing list of schemes" do
context "when I am signed as a support user in there are schemes in the database" do context "when I am signed as a support user and there are schemes in the database" do
let(:user) { FactoryBot.create(:user, :support, last_sign_in_at: Time.zone.now) } let(:user) { FactoryBot.create(:user, :support, last_sign_in_at: Time.zone.now) }
let!(:schemes) { FactoryBot.create_list(:scheme, 5) } let!(:schemes) { FactoryBot.create_list(:scheme, 5) }
let!(:scheme_to_search) { FactoryBot.create(:scheme) } let!(:scheme_to_search) { FactoryBot.create(:scheme) }
@ -77,7 +77,7 @@ RSpec.describe "Supported housing scheme Features" do
end end
context "when viewing individual scheme" do context "when viewing individual scheme" do
context "when I am signed as a support user in there are schemes in the database" do context "when I am signed as a support user and there are schemes in the database" do
let(:user) { FactoryBot.create(:user, :support, last_sign_in_at: Time.zone.now) } let(:user) { FactoryBot.create(:user, :support, last_sign_in_at: Time.zone.now) }
let!(:schemes) { FactoryBot.create_list(:scheme, 5) } let!(:schemes) { FactoryBot.create_list(:scheme, 5) }
let(:notify_client) { instance_double(Notifications::Client) } let(:notify_client) { instance_double(Notifications::Client) }

Loading…
Cancel
Save