1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_minitest_unit.rb: assert_triggered

* test/minitest/test_minitest_unit.rb (assert_triggered): rename
  to be hidden in backtraces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-03-29 09:47:40 +00:00
parent af4b7c8e86
commit 85f3636e98

View file

@ -1645,7 +1645,7 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
assert_equal expected, sample_test_case.test_methods
end
def util_assert_triggered expected, klass = MiniTest::Assertion
def assert_triggered expected, klass = MiniTest::Assertion
e = assert_raises klass do
yield
end
@ -1656,6 +1656,7 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
assert_equal expected, msg
end
alias util_assert_triggered assert_triggered
def util_msg exp, act, msg = nil
s = "Expected: #{exp.inspect}\n Actual: #{act.inspect}"