Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…Ruby 1.9.2)

ruby/ruby@72b489a
  • Loading branch information...
commit 92a15101decf447df7b1c7933d8b2b5f4497d189 1 parent a871760
@Watson1978 Watson1978 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/test/unit/assertions.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.