aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-05 12:22:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-05 12:22:27 +0000
commitdd9341f02b0d058826bb1750c9f90beb8573ca0e (patch)
treefd83ea9f5674b3cb6e5adf011705a6b92da288a6
parent790f43a374b94a906d5a72ae3c9957674cbd33ae (diff)
downloadruby-dd9341f02b0d058826bb1750c9f90beb8573ca0e.tar.gz
* lib/test/unit/assertions.rb (assert_block): move from
test/fileutils/fileasserts.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/test/unit/assertions.rb4
-rw-r--r--test/fileutils/fileasserts.rb4
3 files changed, 8 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index fa8cb8cbde..b18f13cc8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-Sat Feb 5 20:40:34 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Feb 5 21:22:21 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (assert_block): move from
+ test/fileutils/fileasserts.rb.
* test/fileutils/fileasserts.rb (assert_block): pass arguments
as-is. [ruby-dev:43174]
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index 69adcd61aa..9a646c0867 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -21,6 +21,10 @@ module Test
super
end
+ def assert_block(*msgs)
+ assert yield, *msgs
+ end
+
def assert_raise(*args, &b)
assert_raises(*args, &b)
end
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb
index 97e7f964de..47a769c5dc 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -8,10 +8,6 @@ module Test
yield
end
- def assert_block(*msgs)
- assert yield, *msgs
- end
-
def assert_same_file(from, to, message=nil)
_wrap_assertion {
assert_block("file #{from} != #{to}#{message&&': '}#{message||''}") {