aboutsummaryrefslogtreecommitdiffstats
path: root/test/uri/test_mailto.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/uri/test_mailto.rb')
-rw-r--r--test/uri/test_mailto.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/uri/test_mailto.rb b/test/uri/test_mailto.rb
index 39a0f9cdeb..e58e9711e6 100644
--- a/test/uri/test_mailto.rb
+++ b/test/uri/test_mailto.rb
@@ -187,6 +187,12 @@ class 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