Permalink
Browse files

assert_block moved from test/fileutils/fileasserts.rb. (merged from C…

…Ruby 1.9.2)

ruby/ruby@72b489a
  • Loading branch information...
1 parent a871760 commit 92a15101decf447df7b1c7933d8b2b5f4497d189 @Watson1978 Watson1978 committed Jul 30, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/test/unit/assertions.rb
@@ -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

0 comments on commit 92a1510

Please sign in to comment.