From 4a17c5aa196965e5f0adcafd639ea986f0db6d4c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 21 May 2015 11:28:55 +0000 Subject: test_method.rb: add assertion * test/ruby/test_method.rb (test_to_proc_binding): assertion for dynamically set variable names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index d1cde99ab4..c64922002c 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -907,5 +907,6 @@ class TestMethod < Test::Unit::TestCase assert_equal(456, b.local_variable_set(:bar, 456)) assert_equal(123, b.local_variable_get(:foo)) assert_equal(456, b.local_variable_get(:bar)) + assert_equal([:bar, :foo], b.local_variables.sort) end end -- cgit v1.2.3