Browse Source

testing clicking to individual scheme

pull/656/head
JG 3 years ago
parent
commit
ba0027eebb
  1. 3
      app/controllers/schemes_controller.rb
  2. 11
      spec/features/schemes_spec.rb

3
app/controllers/schemes_controller.rb

@ -14,6 +14,9 @@ class SchemesController < ApplicationController
@total_count = all_schemes.size @total_count = all_schemes.size
end end
def show
end
private private
def search_term def search_term

11
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) expect(page).to have_content(scheme.primary_client_group)
end end
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 end
end end

Loading…
Cancel
Save