test/exception.rb: call #initialize via #__send__ to skip private check

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-02-14 09:28:25 +09:00
parent 214ae5aad3
commit f82cd188b0
+1 -1
View File
@@ -36,7 +36,7 @@ end
assert('Exception.exception', '15.2.22.4.1') do
e = Exception.exception()
e.initialize('a')
e.__send__(:initialize,'a')
assert_equal 'a', e.message
end