aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/test_hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_hash.rb')
-rw-r--r--test/psych/test_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb
index 88b520ebfc..31eba8580b 100644
--- a/test/psych/test_hash.rb
+++ b/test/psych/test_hash.rb
@@ -124,7 +124,7 @@ module Psych
end
def test_raises_if_anchor_not_defined
- assert_raise(Psych::BadAlias) do
+ assert_raise(Psych::AnchorNotDefined) do
Psych.unsafe_load(<<~eoyml)
---
foo: &foo