Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/uri/test_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ def test_extract
def test_ractor
return unless defined?(Ractor)
assert_ractor(<<~RUBY, require: 'uri')
class Ractor
alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
end
r = Ractor.new { URI.parse("https://ruby-lang.org/").inspect }
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.take)
assert_equal(URI.parse("https://ruby-lang.org/").inspect, r.value)
RUBY
end

Expand Down