diff options
-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 |