Skip to content

Commit

Permalink
assert_block moved from test/fileutils/fileasserts.rb. (merged from C…
Browse files Browse the repository at this point in the history
…Ruby 1.9.2)

ruby/ruby@72b489a
  • Loading branch information
Watson1978 committed Jul 30, 2011
1 parent a871760 commit 92a1510
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/test/unit/assertions.rb
Expand Up @@ -19,6 +19,10 @@ def assert(test, msg = (nomsg = true; nil))
super
end

def assert_block(*msgs)
assert yield, *msgs
end

def assert_raise(*args, &b)
assert_raises(*args, &b)
end
Expand Down

0 comments on commit 92a1510

Please sign in to comment.