diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-01 13:27:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-01 13:27:49 +0000 |
commit | 865791221193129f99993a8df20196040003ce41 (patch) | |
tree | 6068c178eb637dd9b9d389f7c45a97c0f098ae9a /lib/test | |
parent | c8316e30ae6adefccbd7680e477e906e7913e8c0 (diff) | |
download | ruby-865791221193129f99993a8df20196040003ce41.tar.gz |
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
fixed filtering. [ruby-core:29908]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit/assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index 234775f1a3..a06962fceb 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -13,7 +13,7 @@ module Test def assert(test, msg = (nomsg = true; nil)) unless nomsg or msg.instance_of?(String) or msg.instance_of?(Proc) or (bt = caller).shift.rindex(MiniTest::MINI_DIR, 0) - bt = MiniTest.delete_if {|s| rindex(MiniTest::MINI_DIR, 0)} + bt.delete_if {|s| s.rindex(MiniTest::MINI_DIR, 0)} raise ArgumentError, "assertion message must be String or Proc, but #{msg.class} was given.", bt end super |