summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-proc-ext/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-14 17:38:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-14 17:38:27 +0900
commit27df1a84bc5310bcd32d90b7157a3ad46ef3ac76 (patch)
tree8e7a3c7c64ac392e6dbbb6ef587e7abffdc8cd18 /mrbgems/mruby-proc-ext/test
parent232ec102d6264cd5e79cf4e900a5cc946ca76a67 (diff)
downloadmruby-27df1a84bc5310bcd32d90b7157a3ad46ef3ac76.tar.gz
mruby-27df1a84bc5310bcd32d90b7157a3ad46ef3ac76.zip
Kernel.local_variables to list UPVAR as well
Diffstat (limited to 'mrbgems/mruby-proc-ext/test')
-rw-r--r--mrbgems/mruby-proc-ext/test/proc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb
index a5611e586..4da98de05 100644
--- a/mrbgems/mruby-proc-ext/test/proc.rb
+++ b/mrbgems/mruby-proc-ext/test/proc.rb
@@ -81,4 +81,10 @@ assert('Kernel.local_variables') do
vars = Kernel.local_variables.sort
assert_equal [:a, :b, :vars], vars
+
+ proc {
+ c = 2
+ vars = Kernel.local_variables.sort
+ assert_equal [:a, :b, :c, :vars], vars
+ }.call
end