summaryrefslogtreecommitdiff
path: root/test/psych/visitors/test_yaml_tree.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 19:09:17 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 19:09:43 +0900
commitab785b28e2f3cc879906aeaee0358c0de478499e (patch)
tree4e689da9256f3c1653117bf10cf0803276e6f6f3 /test/psych/visitors/test_yaml_tree.rb
parentbae9a21e40a65c0eaacebfd4b3c3a8de08892c74 (diff)
[ruby/psych] Use assert_raise instead of assert_raises
https://github.com/ruby/psych/commit/e6ad12b4e1
Diffstat (limited to 'test/psych/visitors/test_yaml_tree.rb')
-rw-r--r--test/psych/visitors/test_yaml_tree.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb
index 69885ee9c6..2e6830868e 100644
--- a/test/psych/visitors/test_yaml_tree.rb
+++ b/test/psych/visitors/test_yaml_tree.rb
@@ -127,11 +127,11 @@ module Psych
end
def test_anon_class
- assert_raises(TypeError) do
+ assert_raise(TypeError) do
@v.accept Class.new
end
- assert_raises(TypeError) do
+ assert_raise(TypeError) do
Psych.dump(Class.new)
end
end