summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-21 11:28:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-21 11:28:55 +0000
commit4a17c5aa196965e5f0adcafd639ea986f0db6d4c (patch)
treee07ee41e2ac1e66297ed412312826e1d3506e559 /test
parent7239111ef5384ff9bde6139ba11c05e387dcb9b6 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb1
1 files changed, 1 insertions, 0 deletions
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