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

ruby-changes:58276

From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Oct 2019 21:02:57 +0900 (JST)
Subject: [ruby-changes:58276] f8fb51c976 (master): Revert "alias assert_raise_message for compatibility with test-unit"

https://git.ruby-lang.org/ruby.git/commit/?id=f8fb51c976

From f8fb51c976313b8053412c80f3f7474cdd89b4b3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 16 Oct 2019 21:00:36 +0900
Subject: Revert "alias assert_raise_message for compatibility with test-unit"

This reverts commit 43015275b9a7f2833c93ad11ea96ae4cb3b7acd7.

`assert_raise_message` in test-unit is different from
`assert_raise_with_message`.  It checks the exception message
only, but not the exception class,

diff --git a/tool/lib/test/unit/core_assertions.rb b/tool/lib/test/unit/core_assertions.rb
index deb9908..1c4a254 100644
--- a/tool/lib/test/unit/core_assertions.rb
+++ b/tool/lib/test/unit/core_assertions.rb
@@ -275,7 +275,6 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit/core_assertions.rb#L275
         end
         ex
       end
-      alias assert_raise_message assert_raise_with_message
 
       def assert_warning(pat, msg = nil)
         result = nil
-- 
cgit v0.10.2


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

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