diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-09-06 19:31:24 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-09-06 19:31:24 +0900 |
commit | 544e37f184d38d52423d163b711cd626e53ff75b (patch) | |
tree | 857f98f8e5cfec3761d7088825b9d91611864f01 /tool/lib/test | |
parent | 940a19e4b3ae1ce466c3bc912175b4ef7c615c53 (diff) |
Simplify conditions for CoreAssertion initialization
Diffstat (limited to 'tool/lib/test')
-rw-r--r-- | tool/lib/test/unit/assertions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/lib/test/unit/assertions.rb b/tool/lib/test/unit/assertions.rb index c61f296da9..b99fb19adf 100644 --- a/tool/lib/test/unit/assertions.rb +++ b/tool/lib/test/unit/assertions.rb @@ -303,5 +303,9 @@ EOT template.gsub(/\G((?:[^\\]|\\.)*?)(\\)?\?/) { $1 + ($2 ? "?" : mu_pp(arguments.shift)) } end end + + # Compatibility hack for assert_raise + AssertionFailedError = MiniTest::Assertion + end end |