Browse Source

testing being direct to add locations page after submitting support questions

pull/704/head
JG 3 years ago
parent
commit
f0766492ca
  1. 4
      spec/requests/schemes_controller_spec.rb

4
spec/requests/schemes_controller_spec.rb

@ -750,10 +750,10 @@ RSpec.describe SchemesController, type: :request do
context "when updating support" do context "when updating support" do
let(:params) { { scheme: { intended_stay: "Medium stay", support_type: "Resettlement support", page: "support" } } } let(:params) { { scheme: { intended_stay: "Medium stay", support_type: "Resettlement support", page: "support" } } }
it "renders confirm secondary group after successful update" do it "renders add location to this scheme successful update" do
follow_redirect! follow_redirect!
expect(response).to have_http_status(:ok) expect(response).to have_http_status(:ok)
expect(page).to have_content("Check your changes before updating this scheme") expect(page).to have_content("Add a location to this scheme")
end end
it "updates a scheme with valid params" do it "updates a scheme with valid params" do

Loading…
Cancel
Save