Browse Source

fixed failed test

pull/704/head
JG 3 years ago
parent
commit
167e79e543
  1. 2
      spec/requests/locations_controller_spec.rb

2
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

Loading…
Cancel
Save