Browse Source

lint

pull/717/head
JG 3 years ago
parent
commit
e3b060256d
  1. 2
      app/views/schemes/edit_name.html.erb
  2. 13
      spec/features/schemes_spec.rb

2
app/views/schemes/edit_name.html.erb

@ -18,8 +18,6 @@
label: { text: "Scheme name", size: "m" },
hint: { text: "This is how you’ll refer to this supported housing scheme within your organisation. For example, the name could relate to the address or location. You’ll be able to see the client group when selecting it." } %>
<%= f.govuk_check_boxes_fieldset :sensitive,
legend: { text: "This scheme contains confidential information" } do %>
<%= f.govuk_check_box :sensitive,

13
spec/features/schemes_spec.rb

@ -707,6 +707,19 @@ RSpec.describe "Schemes scheme Features" do
expect(page).to have_current_path("/schemes/#{scheme.id}/edit-name")
expect(page).to have_content "Scheme details"
end
context "when I edit details" do
before do
fill_in "Scheme name", with: "FooBar"
check "This scheme contains confidential information"
click_button "Save and continue"
end
it "lets me see amended details on the show page" do
expect(page).to have_content "FooBar"
expect(page).to have_current_path("/schemes/#{scheme.id}")
end
end
end
end
end

Loading…
Cancel
Save