summaryrefslogtreecommitdiff
path: root/test/uri/test_mailto.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-24 02:58:45 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-24 02:58:45 +0000
commita054854324e88f2282d7440fae758d6aa7a42597 (patch)
treead69ca1e4db07bfba5391ccce920ebbf88da6e26 /test/uri/test_mailto.rb
parent9a6518abf71e5de3d5dee21152dd4cff6730b640 (diff)
downloadruby-a054854324e88f2282d7440fae758d6aa7a42597.tar.gz
Revert "* lib/uri/mailto.rb: support RFC6068."
to fix mailto URI syntax git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/uri/test_mailto.rb')
-rw-r--r--test/uri/test_mailto.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/uri/test_mailto.rb b/test/uri/test_mailto.rb
index 3aac447436..c2158845e8 100644
--- a/test/uri/test_mailto.rb
+++ b/test/uri/test_mailto.rb
@@ -100,6 +100,9 @@ class TestMailTo < Test::Unit::TestCase
# mailto:javascript:alert()
bad << ["javascript:alert()", []]
+ # '=' which is in hname or hvalue is wrong.
+ bad << ["foo@example.jp?subject=1+1=2", []]
+
ok.each do |x|
assert_equal(x[0],
@u.build(x[1]).to_s)
@@ -108,7 +111,7 @@ class TestMailTo < Test::Unit::TestCase
end
bad.each do |x|
- assert_raise(URI::InvalidComponentError, %[URI::MailTo.build(#{x.inspect})]) {
+ assert_raise(URI::InvalidComponentError) {
@u.build(x)
}
end