diff --git a/app/controllers/schemes_controller.rb b/app/controllers/schemes_controller.rb index 83bff5542..9c571d765 100644 --- a/app/controllers/schemes_controller.rb +++ b/app/controllers/schemes_controller.rb @@ -14,6 +14,9 @@ class SchemesController < ApplicationController @total_count = all_schemes.size end + def show + end + private def search_term diff --git a/spec/features/schemes_spec.rb b/spec/features/schemes_spec.rb index 7a699fd33..2a4d7ab8e 100644 --- a/spec/features/schemes_spec.rb +++ b/spec/features/schemes_spec.rb @@ -110,6 +110,17 @@ RSpec.describe "Supported housing scheme Features" do expect(page).to have_content(scheme.primary_client_group) end end + + context "when I click to see individual scheme" do + before do + click_link(schemes.first.service_name) + end + + it "shows me details about the selected scheme" do + expect(page).to have_content(schemes.first.service_name) + expect(page).to have_content(schemes.first.sensitive) + end + end end end end