diff options
Diffstat (limited to 'test/uri/test_generic.rb')
-rw-r--r-- | test/uri/test_generic.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb index 977ae72250..72769add7e 100644 --- a/test/uri/test_generic.rb +++ b/test/uri/test_generic.rb @@ -716,9 +716,9 @@ class URI::TestGeneric < Test::Unit::TestCase uri = URI.parse('http://example.com') assert_raise(URI::InvalidURIError) { uri.password = 'bar' } - assert_raise(URI::InvalidComponentError) { uri.query = "foo\nbar" } + assert_equal("foo\nbar", uri.query = "foo\nbar") uri.userinfo = 'foo:bar' - assert_equal('http://foo:[email protected]', uri.to_s) + assert_equal('http://foo:[email protected]?foobar', uri.to_s) assert_raise(URI::InvalidURIError) { uri.registry = 'bar' } assert_raise(URI::InvalidURIError) { uri.opaque = 'bar' } |