From 167e79e543e17661bf35a30cdb3360c3b4e49469 Mon Sep 17 00:00:00 2001 From: JG Date: Tue, 5 Jul 2022 11:23:21 +0100 Subject: [PATCH] fixed failed test --- spec/requests/locations_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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