mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/mailto.rb (URI::MailTo.build): follow Array#to_s change of
Ruby 1.9; use Array#join. [Bug #5840] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aa5b65b2ed
commit
44d7233201
3 changed files with 16 additions and 1 deletions
|
|
@ -82,6 +82,16 @@ class TestMailTo < Test::Unit::TestCase
|
|||
ok[-1] << {:to => "unlikely%3Faddress@example.com",
|
||||
:headers => ["blat=foop"]}
|
||||
|
||||
# mailto:john@example.com?Subject=Ruby&Cc=jack@example.com
|
||||
ok << ["mailto:john@example.com?Subject=Ruby&Cc=jack@example.com"]
|
||||
ok[-1] << ['john@example.com', [['Subject', 'Ruby'], ['Cc', 'jack@example.com']]]
|
||||
ok[-1] << {:to=>"john@example.com", :headers=>[["Subject", "Ruby"], ["Cc", "jack@example.com"]]}
|
||||
|
||||
# mailto:listman@example.com?subject=subscribe
|
||||
ok << ["mailto:listman@example.com?subject=subscribe"]
|
||||
ok[-1] << {:to => 'listman@example.com', :headers => [['subject', 'subscribe']]}
|
||||
ok[-1] << {:to => 'listman@example.com', :headers => [['subject', 'subscribe']]}
|
||||
|
||||
ok_all = ok.flatten.join("\0")
|
||||
|
||||
# mailto:joe@example.com?cc=bob@example.com?body=hello ; WRONG!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue