diff --git a/spec/requests/locations_controller_spec.rb b/spec/requests/locations_controller_spec.rb index 7b36d0d28..b48df1448 100644 --- a/spec/requests/locations_controller_spec.rb +++ b/spec/requests/locations_controller_spec.rb @@ -340,7 +340,7 @@ RSpec.describe LocationsController, type: :request do let(:another_scheme) { FactoryBot.create(:scheme) } it "displays the new page with an error message" do - get "/schemes/#{scheme.id}/location" + get "/schemes/#{location.id}/location?scheme_id=#{another_scheme.id}" expect(response).to have_http_status(:not_found) end end