summaryrefslogtreecommitdiff
path: root/test/psych/test_object.rb
diff options
context:
space:
mode:
authorAlexander Momchilov <alexander.momchilov@shopify.com>2022-07-21 15:07:39 -0400
committerAlexander Momchilov <alexander.momchilov@shopify.com>2022-07-27 15:24:24 -0400
commit0c11ddcf4636cfa415a2d4ff5a5222830605b086 (patch)
tree72d21f3d0e2755d4a0601fd5f9d69cfb6b2a672c /test/psych/test_object.rb
parentb9ab19094f1534c38b724a2ef76c30eb9cf5262f (diff)
downloadpsych-0c11ddcf4636cfa415a2d4ff5a5222830605b086.tar.gz
Raise specific error when aliases are not enabled
Diffstat (limited to 'test/psych/test_object.rb')
-rw-r--r--test/psych/test_object.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_object.rb b/test/psych/test_object.rb
index 227a1d1..21c2779 100644
--- a/test/psych/test_object.rb
+++ b/test/psych/test_object.rb
@@ -46,7 +46,7 @@ module Psych
foo = Foo.new(nil)
foo.parent = foo
- assert_raise(BadAlias) do
+ assert_raise(AliasesNotEnabled) do
Psych.load(Psych.dump(foo), permitted_classes: [Foo], aliases: false)
end
end