summaryrefslogtreecommitdiff
path: root/test/ruby/test_backtrace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_backtrace.rb')
-rw-r--r--test/ruby/test_backtrace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_backtrace.rb b/test/ruby/test_backtrace.rb
index ff95a89e67..b6b0f73882 100644
--- a/test/ruby/test_backtrace.rb
+++ b/test/ruby/test_backtrace.rb
@@ -198,7 +198,7 @@ class TestBacktrace < Test::Unit::TestCase
def test_caller_locations_base_label
assert_equal("#{__method__}", caller_locations(0, 1)[0].base_label)
- loc, = tap {|loc| break caller_locations(0, 1)}
+ loc, = tap {break caller_locations(0, 1)}
assert_equal("#{__method__}", loc.base_label)
begin
raise
@@ -209,7 +209,7 @@ class TestBacktrace < Test::Unit::TestCase
def test_caller_locations_label
assert_equal("#{__method__}", caller_locations(0, 1)[0].label)
- loc, = tap {|loc| break caller_locations(0, 1)}
+ loc, = tap {break caller_locations(0, 1)}
assert_equal("block in #{__method__}", loc.label)
begin
raise