diff options
author | kennyj <kennyj@gmail.com> | 2012-01-19 19:38:23 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-01-19 20:27:16 +0900 |
commit | d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0 (patch) | |
tree | 6cc58bd5657ea5413d51f59c4893252c81bf0130 /activesupport/test | |
parent | 04d6ebb467a449a5b56151de5fb13c41318d217a (diff) | |
download | rails-d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0.tar.gz rails-d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0.tar.bz2 rails-d8b06dc5c250f80687f3e9d5de77b6cdf106c8f0.zip |
Convert URI.parser.parse to URI.parse, and remove ruby 1.8.x code.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/uri_ext_test.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/activesupport/test/core_ext/uri_ext_test.rb b/activesupport/test/core_ext/uri_ext_test.rb index 4a6cbb8801..03e388dd7a 100644 --- a/activesupport/test/core_ext/uri_ext_test.rb +++ b/activesupport/test/core_ext/uri_ext_test.rb @@ -7,11 +7,7 @@ class URIExtTest < ActiveSupport::TestCase def test_uri_decode_handle_multibyte str = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E" # Ni-ho-nn-go in UTF-8, means Japanese. - if URI.const_defined?(:Parser) - parser = URI::Parser.new - assert_equal str, parser.unescape(parser.escape(str)) - else - assert_equal str, URI.unescape(URI.escape(str)) - end + parser = URI::Parser.new + assert_equal str, parser.unescape(parser.escape(str)) end end |