From f408ae639bc91ad881229f95b73bc99e52d37908 Mon Sep 17 00:00:00 2001 From: JG Date: Mon, 13 Jun 2022 10:02:45 +0100 Subject: [PATCH] testing there are links to the schemes not just names -2 --- spec/features/schemes_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 3d397aa6a..8e8cfbd1f 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -100,11 +100,13 @@ RSpec.describe "Supported housing scheme Features" do end context "when I visit supported housing page" do - before { visit("supported-housing") } + before do + visit("supported-housing") + end it "shows list of links to schemes" do schemes.each do |scheme| - expect(page).to have_link((scheme.service_name) + expect(page).to have_link(scheme.service_name) end end end