diff options
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 91279d9d75..28ba8c9b57 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -1253,7 +1253,9 @@ class TestProc < Test::Unit::TestCase def test_local_variables b = get_binding - assert_equal(%i[if case when begin end a], b.local_variables) + assert_equal(%i'if case when begin end a', b.local_variables) + a = tap {|;a, b| break binding.local_variables} + assert_equal(%i[a b], a.sort) end def test_local_variables_nested |