summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-01 13:41:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-01 13:41:10 +0000
commit9ad152e55580b497cbba4c7a15d20cba8e3ef1f5 (patch)
treea1ed3e918abbb8e4bbed095f51563c83cd4783ad /lib
parent865791221193129f99993a8df20196040003ce41 (diff)
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
keep the first trace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit/assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index a06962fceb..f4e4e74e1e 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -12,7 +12,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 = caller).first.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