diff options
Diffstat (limited to 'test/minitest/test_minitest_unit.rb')
-rw-r--r-- | test/minitest/test_minitest_unit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/minitest/test_minitest_unit.rb b/test/minitest/test_minitest_unit.rb index 28c6e93028..eadf59ee70 100644 --- a/test/minitest/test_minitest_unit.rb +++ b/test/minitest/test_minitest_unit.rb @@ -897,6 +897,15 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase end end + def test_assert_output_both_regexps + @assertion_count = 4 + + @tc.assert_output(/y.y/, /bl.h/) do + print "yay" + $stderr.print "blah" + end + end + def test_assert_output_err @tc.assert_output nil, "blah" do $stderr.print "blah" |