Skip to content

Commit

Permalink
Update routing test handles params without a value
Browse files Browse the repository at this point in the history
The behaviour changed in Rack 3 with

- rack/rack#1989
- rack/rack@ab1f1c1
  • Loading branch information
dentarg committed Feb 9, 2023
1 parent 350bb99 commit 92454f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/routing_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class RoutingTest < Minitest::Test
it "handles params without a value" do
mock_app {
get '/' do
assert_nil params.fetch('foo')
assert_empty params.fetch('foo')
"Given: #{params.keys.sort.join(',')}"
end
}
Expand Down

0 comments on commit 92454f1

Please sign in to comment.