summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-01-12 22:21:34 +0900
committerKOBAYASHI Shuji <[email protected]>2019-01-12 22:21:34 +0900
commit8b951710fe535acf479672691720cf9b80bc5331 (patch)
treeb551d80bfecbf14d022e8fb643132be7b2ab4d82 /test
parent980b7b5c50006174b43b760fa01deca9dfa19e64 (diff)
downloadmruby-8b951710fe535acf479672691720cf9b80bc5331.tar.gz
mruby-8b951710fe535acf479672691720cf9b80bc5331.zip
Use `__send__` instead of `send`; ref #4207
Diffstat (limited to 'test')
-rw-r--r--test/t/exception.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index ce7b5841e..bdf277c1e 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -263,10 +263,10 @@ assert('Exception 13') do
end
assert('Exception 14') do
- def exception_test14; UnknownConstant; end
+ def (o = Object.new).exception_test14; UnknownConstant end
a = :ng
begin
- send(:exception_test14)
+ o.__send__(:exception_test14)
rescue
a = :ok
end