Sha256: 2fa1e171a6badcc69eab5d755fc8df0c4de55f1a99f6b78aa7543d6087a876b8
Contents?: true
Size: 339 Bytes
Versions: 14
Compression:
Stored size: 339 Bytes
Contents
require 'test_helper' class MonkeyPatchTest < Test::Unit::TestCase should "convert a hash to a valid url parameter string" do h1 = { :foo => 1, :bar => 2, :baz => 3 } assert_equal h1.to_url, 'foo=1&bar=2&baz=3' h2 = { :foo => "What's up Doc", :bar => "1" } assert_equal h2.to_url, "foo=What%27s+up+Doc&bar=1" end end
Version data entries
14 entries across 14 versions & 2 rubygems