summaryrefslogtreecommitdiff
path: root/lib/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit')
-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