From cd82a57154d57c18acfadbfefbefc6ea6a5035af Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Wed, 27 Feb 2013 10:14:43 +1100 Subject: [PATCH] add test for + behavior --- test/routing_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/routing_test.rb b/test/routing_test.rb index e688cd3c..97f98cc0 100644 --- a/test/routing_test.rb +++ b/test/routing_test.rb @@ -359,6 +359,17 @@ class RoutingTest < Test::Unit::TestCase assert not_found? end + it "does not convert plus sign into space as the value of a named param" do + mock_app do + get '/:test' do + params["test"] + end + end + get '/bob+ross' + assert ok? + assert_equal 'bob+ross', body + end + it "literally matches parens in paths" do route_def '/test(bar)/'