From 0c11ddcf4636cfa415a2d4ff5a5222830605b086 Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Thu, 21 Jul 2022 15:07:39 -0400 Subject: Raise specific error when aliases are not enabled --- test/psych/test_object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/psych/test_object.rb') 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 -- cgit v1.2.1