diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-01 11:20:30 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-01 11:20:30 +0900 |
| commit | b80e0ef7428b613a682da4d2a251c8beb24d6dd2 (patch) | |
| tree | d47427ac2f9bb454f9a47b79d6767ee27bd0c8f0 /mrbgems/mruby-method/test | |
| parent | 593c12a5cd670cfdb45741377236207a56541d37 (diff) | |
| download | mruby-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/test')
| -rw-r--r-- | mrbgems/mruby-method/test/method.rb | 5 |
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 |
