Browse Source

Update schemes banner text (#1968)

empty-pull-request
kosiakkatrina 1 year ago committed by GitHub
parent
commit
445883e796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/schemes_controller.rb
  2. 2
      spec/features/schemes_spec.rb

2
app/controllers/schemes_controller.rb

@ -141,7 +141,7 @@ class SchemesController < ApplicationController
flash[:notice] = if scheme_previously_confirmed
"#{@scheme.service_name} has been updated."
else
"#{@scheme.service_name} has been created."
"#{@scheme.service_name} has been created. It does not require helpdesk approval."
end
redirect_to scheme_path(@scheme)
elsif check_answers

2
spec/features/schemes_spec.rb

@ -657,7 +657,7 @@ RSpec.describe "Schemes scheme Features" do
end
it "adds scheme to the list of schemes" do
expect(page).to have_content "#{scheme.service_name} has been created."
expect(page).to have_content "#{scheme.service_name} has been created. It does not require helpdesk approval."
click_link "Schemes"
expect(page).to have_content "Supported housing schemes"
expect(page).to have_content scheme.id_to_display

Loading…
Cancel
Save