summaryrefslogtreecommitdiff
path: root/test/fileutils/fileasserts.rb
diff options
context:
space:
mode:
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 41469a6ac6..d784544555 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}") {