summaryrefslogtreecommitdiffstats
path: root/test/fileutils/fileasserts.rb
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-23 21:39:21 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-23 21:39:21 +0000
commit777aac883bc05bc8221778ec3f22ef98019c1da6 (patch)
tree242b78f76dd823c3c4894cae01968f207bbd10b6 /test/fileutils/fileasserts.rb
parent423cd349b4be830959aa9cf6f590487ea49d612f (diff)
downloadruby-777aac883bc05bc8221778ec3f22ef98019c1da6.tar.gz
ruby-777aac883bc05bc8221778ec3f22ef98019c1da6.tar.xz
ruby-777aac883bc05bc8221778ec3f22ef98019c1da6.zip
Added changes needed for miniunit. usually from using internal calls that aren't needed anymore.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils/fileasserts.rb')
-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 41469a6ac..d78454455 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -4,6 +4,10 @@ module Test
module Unit
module Assertions # redefine
+ def _wrap_assertion
+ yield
+ end
+
def assert_same_file(from, to)
_wrap_assertion {
assert_block("file #{from} != #{to}") {