diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-29 09:47:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-29 09:47:40 +0000 |
commit | 85f3636e98983e9661f6078ec88572d42dd7cdde (patch) | |
tree | 9b7a158b2bc0057190e3bac7d5f42f8438ad7847 | |
parent | af4b7c8e862e8d70b0bba09fb4e19d962ff7bad4 (diff) | |
download | ruby-85f3636e98983e9661f6078ec88572d42dd7cdde.tar.gz |
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
-rw-r--r-- | test/minitest/test_minitest_unit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/minitest/test_minitest_unit.rb b/test/minitest/test_minitest_unit.rb index b70c099d01..0b050c6ee2 100644 --- a/test/minitest/test_minitest_unit.rb +++ b/test/minitest/test_minitest_unit.rb @@ -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}" |