diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 05:45:08 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 05:45:08 +0000 |
commit | 6cd700f3e9be25e270d11840b3d658ae35dcb0ca (patch) | |
tree | 9e8bcbe0b26b9bb97580399ec2c99ae3ec81dfaa /test/uri | |
parent | 9efce27a62e2ef3c5940d3ee407e5a57e860bc66 (diff) |
merge revision(s) 34214:
* lib/uri/common.rb (URI::Parser#initialize_regexp):
use \A \z instead of ^ $. [Bug #5843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/uri')
-rw-r--r-- | test/uri/test_generic.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/uri/test_generic.rb b/test/uri/test_generic.rb index cfd92e7b26..2c9bdd00fa 100644 --- a/test/uri/test_generic.rb +++ b/test/uri/test_generic.rb @@ -692,6 +692,7 @@ 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" } uri.userinfo = 'foo:bar' assert_equal('http://foo:bar@example.com', uri.to_s) assert_raise(URI::InvalidURIError) { uri.registry = 'bar' } |