summaryrefslogtreecommitdiff
path: root/test/spec_utils.rb
diff options
context:
space:
mode:
authorJames Tucker <jftucker@gmail.com>2014-08-03 14:15:10 -0300
committerJames Tucker <jftucker@gmail.com>2014-08-03 14:15:10 -0300
commitc34b5790af6733571522adf7cc91e9e85c4a3b64 (patch)
treeda13e7760ca450b93621eb1bc68697428d1d22f2 /test/spec_utils.rb
parent60a25f2c26b764aefc882f197f8b2af248b405d2 (diff)
downloadrack-c34b5790af6733571522adf7cc91e9e85c4a3b64.tar.gz
build_nested_query includes integer values
Patch from @spastorino Closes #557
Diffstat (limited to 'test/spec_utils.rb')
-rw-r--r--test/spec_utils.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/spec_utils.rb b/test/spec_utils.rb
index 4b989db7..53311fd2 100644
--- a/test/spec_utils.rb
+++ b/test/spec_utils.rb
@@ -248,6 +248,8 @@ describe Rack::Utils do
Rack::Utils.build_nested_query("foo" => "1", "bar" => "2").
should.be equal_query_to("foo=1&bar=2")
+ Rack::Utils.build_nested_query("foo" => 1, "bar" => 2).
+ should.be equal_query_to("foo=1&bar=2")
Rack::Utils.build_nested_query("my weird field" => "q1!2\"'w$5&7/z8)?").
should.be equal_query_to("my+weird+field=q1%212%22%27w%245%267%2Fz8%29%3F")