summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/uri/test_common.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/uri/test_common.rb b/test/uri/test_common.rb
index 3d281758f4..5e30cda41d 100644
--- a/test/uri/test_common.rb
+++ b/test/uri/test_common.rb
@@ -35,8 +35,10 @@ class TestCommon < Test::Unit::TestCase
def test_ractor
return unless defined?(Ractor)
- r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
- assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
+ assert_ractor(<<~RUBY, require: 'uri')
+ r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
+ assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
+ RUBY
end
def test_register_scheme