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

ruby-changes:49533

From: nobu <ko1@a...>
Date: Sun, 7 Jan 2018 13:24:01 +0900 (JST)
Subject: [ruby-changes:49533] nobu:r61648 (trunk): test_exception.rb: fix message

nobu	2018-01-07 13:23:55 +0900 (Sun, 07 Jan 2018)

  New Revision: 61648

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

  Log:
    test_exception.rb: fix message
    
    * test/ruby/test_exception.rb (test_full_message): fix method name
      in a message.

  Modified files:
    trunk/test/ruby/test_exception.rb
Index: test/ruby/test_exception.rb
===================================================================
--- test/ruby/test_exception.rb	(revision 61647)
+++ test/ruby/test_exception.rb	(revision 61648)
@@ -1116,8 +1116,8 @@ $stderr = $stdout; raise "\x82\xa0"') do https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L1116
     test_method = "def foo; raise 'testerror'; end"
 
     out1, err1, status1 = EnvUtil.invoke_ruby(['-e', "#{test_method}; begin; foo; rescue => e; puts e.full_message; end"], '', true, true)
-    assert(status1.success?)
-    assert(err1.empty?, "expected nothing wrote to $stdout by #long_message")
+    assert_predicate(status1, :success?)
+    assert_empty(err1, "expected nothing wrote to $stdout by #full_message")
 
     _, err2, status1 = EnvUtil.invoke_ruby(['-e', "#{test_method}; begin; foo; end"], '', true, true)
     assert_equal(err2, out1)

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

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