1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-05-21 11:28:55 +00:00
parent 7239111ef5
commit 4a17c5aa19

View file

@ -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