From 67e7d71fdd930c6c4ba65ec75536c77c708bf288 Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Mon, 15 May 2023 06:51:57 +0200 Subject: [PATCH] Revert "Update routing test `handles params without a value`" Rack v3.0.7 rolled back this change with https://github.com/rack/rack/pull/2059 Other references: - https://github.com/rails/rails/pull/47652 - https://github.com/rack/rack/pull/2052 - https://github.com/rack/rack/pull/2038 --- test/routing_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/routing_test.rb b/test/routing_test.rb index 1bc74b60ec..88c7532a03 100644 --- a/test/routing_test.rb +++ b/test/routing_test.rb @@ -313,7 +313,7 @@ class RoutingTest < Minitest::Test it "handles params without a value" do mock_app { get '/' do - assert_empty params.fetch('foo') + assert_nil params.fetch('foo') "Given: #{params.keys.sort.join(',')}" end }