summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-02-26 12:29:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-02-26 12:29:23 +0900
commita0f7de814ae5c299d6ce99bed5fb308a05d50ba0 (patch)
tree71b2d940b9186374aead7c226829f894b451bbfb /test/ruby
parent9ec342e07df6aa5e2c2e9003517753a2f1b508fd (diff)
[Bug #20296] Fix the default assertion message
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_complex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index 3a9bad1416..8817a62873 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -980,7 +980,7 @@ class Complex_Test < Test::Unit::TestCase
}
end
- def assert_complex_with_exception(error, *args, message: nil)
+ def assert_complex_with_exception(error, *args, message: "")
assert_raise(error, message) do
Complex(*args, exception: true)
end