[前][次][番号順一覧][スレッド一覧]

ruby-changes:45027

From: nobu <ko1@a...>
Date: Sat, 17 Dec 2016 09:58:50 +0900 (JST)
Subject: [ruby-changes:45027] nobu:r57100 (trunk): test_mailto.rb: overwritten methods

nobu	2016-12-17 09:58:47 +0900 (Sat, 17 Dec 2016)

  New Revision: 57100

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57100

  Log:
    test_mailto.rb: overwritten methods
    
    * test/uri/test_mailto.rb (URI::TestMailTo#test_to_mailtext):
      merge overwritten methods.  [Bug #10774]

  Modified files:
    trunk/test/uri/test_mailto.rb
Index: test/uri/test_mailto.rb
===================================================================
--- test/uri/test_mailto.rb	(revision 57099)
+++ test/uri/test_mailto.rb	(revision 57100)
@@ -175,6 +175,10 @@ class URI::TestMailTo < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/uri/test_mailto.rb#L175
       u = URI::MailTo.build(params)
       assert_equal(expected, u.to_mailtext)
     end
+
+    u = URI.parse('mailto:ruby-list@r...?Subject=subscribe&cc=myaddr')
+    assert_equal "To: ruby-list@r...\nSubject: subscribe\nCc: myaddr\n\n\n",
+      u.to_mailtext
   end
 
   def test_select
@@ -184,10 +188,4 @@ class URI::TestMailTo < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/uri/test_mailto.rb#L188
       u.select(:scheme, :host, :not_exist, :port)
     end
   end
-
-  def test_to_mailtext
-    u = URI.parse('mailto:ruby-list@r...?Subject=subscribe&cc=myaddr')
-    assert_equal "To: ruby-list@r...\nSubject: subscribe\nCc: myaddr\n\n\n",
-      u.to_mailtext
-  end
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]