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:
parent
7239111ef5
commit
4a17c5aa19
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue