summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-method
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-09-01 11:20:30 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-09-01 11:20:30 +0900
commitb80e0ef7428b613a682da4d2a251c8beb24d6dd2 (patch)
treed47427ac2f9bb454f9a47b79d6767ee27bd0c8f0 /mrbgems/mruby-method
parent593c12a5cd670cfdb45741377236207a56541d37 (diff)
downloadmruby-b80e0ef7428b613a682da4d2a251c8beb24d6dd2.tar.gz
mruby-b80e0ef7428b613a682da4d2a251c8beb24d6dd2.zip
Move `Kernel#send` to `mruby-metaprog` gem.
But `BasicObject#__send__` is still available from the core.
Diffstat (limited to 'mrbgems/mruby-method')
-rw-r--r--mrbgems/mruby-method/test/method.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/mrbgems/mruby-method/test/method.rb b/mrbgems/mruby-method/test/method.rb
index eb5f48341..9fd6a558e 100644
--- a/mrbgems/mruby-method/test/method.rb
+++ b/mrbgems/mruby-method/test/method.rb
@@ -102,10 +102,7 @@ end
assert 'Method#call for regression' do
obj = BasicObject.new
- def obj.foo
- :ok
- end
- assert_equal :ok, Kernel.instance_method(:send).bind(obj).call(:foo), "https://github.com/ksss/mruby-method/issues/4"
+ assert_equal String, Kernel.instance_method(:inspect).bind(obj).call().class, "https://github.com/ksss/mruby-method/issues/4"
end
assert 'Method#call with undefined method' do