summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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