summaryrefslogtreecommitdiff
path: root/test/fileutils
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-04 18:34:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-04 18:34:12 +0000
commitf38aad8d878e5fbf760bf6ec71825a41d24e082e (patch)
tree789fc52806ce2c7570452ced4d9aaef831d92312 /test/fileutils
parentf6b4cba666b1cfb6dc6f8e2f9d57928c6d640ba5 (diff)
* test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
show the given message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
-rw-r--r--test/fileutils/fileasserts.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb
index bad87e9..579fefd 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -8,6 +8,10 @@ module Test
yield
end
+ def assert_block msg = nil
+ assert yield, msg
+ end
+
def assert_same_file(from, to)
_wrap_assertion {
assert_block("file #{from} != #{to}") {