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:
parent
af4b7c8e86
commit
85f3636e98
1 changed files with 2 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue