From fbb254fae98ad6dc2e08f077736c06a077496931 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 13 Jun 2022 09:59:32 +0100 Subject: [PATCH] testing there are links to the schemes not just names --- spec/features/schemes_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 092dc3226..3d397aa6a 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -76,7 +76,7 @@ RSpec.describe "Supported housing scheme Features" do end end - context "when viewing particular 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 let(:user) { FactoryBot.create(:user, :support, last_sign_in_at: Time.zone.now) } let!(:schemes) { FactoryBot.create_list(:scheme, 5) } @@ -104,7 +104,7 @@ RSpec.describe "Supported housing scheme Features" do it "shows list of links to schemes" do schemes.each do |scheme| - expect(page).to have_content(scheme.code) + expect(page).to have_link((scheme.service_name) end end end