Unverified Commit c6f9a09e authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4207 from shuujii/use-__send__-instead-of-send

Use `__send__` instead of `send` in a Range test.
parents b04506cd 4da687a6
...@@ -59,7 +59,7 @@ assert('Range#initialize', '15.2.14.4.9') do ...@@ -59,7 +59,7 @@ assert('Range#initialize', '15.2.14.4.9') do
assert_equal (1..10), b assert_equal (1..10), b
assert_false b.exclude_end? assert_false b.exclude_end?
assert_raise(NameError) { (0..1).send(:initialize, 1, 3) } assert_raise(NameError) { (0..1).__send__(:initialize, 1, 3) }
end end
assert('Range#last', '15.2.14.4.10') do assert('Range#last', '15.2.14.4.10') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment