summaryrefslogtreecommitdiff
path: root/test/psych/test_ractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych/test_ractor.rb')
-rw-r--r--test/psych/test_ractor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_ractor.rb b/test/psych/test_ractor.rb
index c6bed7ce69..1b0d810609 100644
--- a/test/psych/test_ractor.rb
+++ b/test/psych/test_ractor.rb
@@ -6,7 +6,7 @@ class TestPsychRactor < Test::Unit::TestCase
assert_ractor(<<~RUBY, require_relative: 'helper')
obj = {foo: [42]}
obj2 = Ractor.new(obj) do |obj|
- Psych.load(Psych.dump(obj))
+ Psych.unsafe_load(Psych.dump(obj))
end.take
assert_equal obj, obj2
RUBY
@@ -47,4 +47,4 @@ class TestPsychRactor < Test::Unit::TestCase
assert_equal true, r
RUBY
end
-end if defined?(Test::Unit::TestCase)
+end if defined?(Ractor)