Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 7427]
  • Loading branch information
zenspider committed May 8, 2012
1 parent c5fd8b4 commit 41bc8e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_minitest_unit.rb
Expand Up @@ -699,13 +699,16 @@ def test_assert__triggered_message

def test_assert_block
exp = ["NOTE: MiniTest::Unit::TestCase#assert_block is deprecated,",
"use assert. It will be removed on or after 2012-06-01.\n"].join " "
"use assert. It will be removed on or after 2012-06-01."].join " "

assert_output "", exp do
out, err = capture_io do
@tc.assert_block do
true
end
end

assert_equal "", out
assert_match exp, err
end

def test_assert_block_triggered
Expand Down

0 comments on commit 41bc8e8

Please sign in to comment.