diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-17 00:58:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-17 00:58:47 +0000 |
commit | ba71a6873268039c5821edb310cf28ffecc6a66e (patch) | |
tree | 39ffd61719ff73ec181762f68c683f4169e82754 /test | |
parent | a37cc2d4d8273f0949a71e35dcf2f95d3b036809 (diff) | |
download | ruby-ba71a6873268039c5821edb310cf28ffecc6a66e.tar.gz |
test_mailto.rb: overwritten methods
* test/uri/test_mailto.rb (URI::TestMailTo#test_to_mailtext):
merge overwritten methods. [Bug #10774]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/uri/test_mailto.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/uri/test_mailto.rb b/test/uri/test_mailto.rb index eba935e21d..e7d3142198 100644 --- a/test/uri/test_mailto.rb +++ b/test/uri/test_mailto.rb @@ -175,6 +175,10 @@ class URI::TestMailTo < Test::Unit::TestCase u = URI::MailTo.build(params) assert_equal(expected, u.to_mailtext) end + + u = URI.parse('mailto:ruby-list@ruby-lang.org?Subject=subscribe&cc=myaddr') + assert_equal "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n", + u.to_mailtext end def test_select @@ -184,10 +188,4 @@ class URI::TestMailTo < Test::Unit::TestCase u.select(:scheme, :host, :not_exist, :port) end end - - def test_to_mailtext - u = URI.parse('mailto:ruby-list@ruby-lang.org?Subject=subscribe&cc=myaddr') - assert_equal "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n", - u.to_mailtext - end end |