From 53272d6b3483a5e975ad692f5b5add8c047f1e35 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 5 Dec 2023 16:41:02 +0000 Subject: [PATCH] feat: update tests --- spec/features/schemes_spec.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 7009133f7..88c3099a0 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -173,7 +173,7 @@ RSpec.describe "Schemes scheme Features" do context "when viewing individual scheme" do let!(:schemes) { FactoryBot.create_list(:scheme, 5) } - let!(:same_organisation_schemes) { FactoryBot.create_list(:scheme, 5, owning_organisation: user.organisation) } + let!(:same_organisation_schemes) { FactoryBot.create_list(:scheme, 5, owning_organisation: user.organisation) } context "when I visit schemes page" do before do @@ -188,15 +188,15 @@ RSpec.describe "Schemes scheme Features" do end it "shows me details about the selected scheme" do - expect(page).to have_content(schemes.first.id_to_display) - expect(page).to have_content(schemes.first.service_name) - 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.primary_client_group) - expect(page).to have_content(schemes.first.secondary_client_group) - expect(page).to have_content(schemes.first.support_type) - expect(page).to have_content(schemes.first.intended_stay) + expect(page).to have_content(scheme.id_to_display) + expect(page).to have_content(scheme.service_name) + expect(page).to have_content(scheme.sensitive) + expect(page).to have_content(scheme.scheme_type) + expect(page).to have_content(scheme.registered_under_care_act) + expect(page).to have_content(scheme.primary_client_group) + expect(page).to have_content(scheme.secondary_client_group) + expect(page).to have_content(scheme.support_type) + expect(page).to have_content(scheme.intended_stay) end context "when I click to go back" do