merges r30798 from trunk into ruby_1_9_2.

--
* lib/test/unit/assertions.rb (assert_block): move from
  test/fileutils/fileasserts.rb.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2011-05-31 02:28:46 +00:00
parent a4dba49575
commit 72b489a5ad
3 changed files with 9 additions and 2 deletions

View file

@ -472,7 +472,10 @@ Sun May 1 18:35:34 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* test/fileutils/fileasserts.rb (assert_block): little workaround
for [ruby-dev:43174].
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]

View file

@ -19,6 +19,10 @@ module Test
super
end
def assert_block(*msgs)
assert yield, *msgs
end
def assert_raise(*args, &b)
assert_raises(*args, &b)
end

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_PATCHLEVEL 266
#define RUBY_PATCHLEVEL 267
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1