summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-10 00:45:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-10 00:45:34 +0900
commit48ac1f74f199d2845e107979e6908ff1418e90bf (patch)
tree39792bf2c13c872723c353ac9e6895f5954c97e2 /test
parent64b30b65ee3f6787978dcd336e0c2490e290a3af (diff)
parentd0c0beb880f1e6b65851724d410ace6de0ad782f (diff)
downloadmruby-48ac1f74f199d2845e107979e6908ff1418e90bf.tar.gz
mruby-48ac1f74f199d2845e107979e6908ff1418e90bf.zip
Merge pull request #2218 from take-cheeze/move_method
Move `__method__` to mruby-kernel-ext since it's not ISO method.
Diffstat (limited to 'test')
-rw-r--r--test/t/kernel.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb
index c6b65ddf7..17f776683 100644
--- a/test/t/kernel.rb
+++ b/test/t/kernel.rb
@@ -528,20 +528,6 @@ assert('Kernel#global_variables') do
end
end
-assert('Kernel#__method__') do
- assert_equal(:m, Class.new {def m; __method__; end}.new.m)
- assert_equal(:m, Class.new {define_method(:m) {__method__}}.new.m)
- c = Class.new do
- [:m1, :m2].each do |m|
- define_method(m) do
- __method__
- end
- end
- end
- assert_equal(:m1, c.new.m1)
- assert_equal(:m2, c.new.m2)
-end
-
assert('Kernel#define_singleton_method') do
o = Object.new
ret = o.define_singleton_method(:test_method) do