diff --git a/spec/requests/form_controller_spec.rb b/spec/requests/form_controller_spec.rb index 02f499fd5..80157e992 100644 --- a/spec/requests/form_controller_spec.rb +++ b/spec/requests/form_controller_spec.rb @@ -746,6 +746,7 @@ RSpec.describe FormController, type: :request do it "re-renders the same page with errors if validation fails" do post "/lettings-logs/#{lettings_log.id}/managing-organisation", params: params expect(page).to have_content("There is a problem") + expect(page).to have_content("Error: Which organisation manages this letting?") end end