Skip to content

Commit d42b369

Browse files
committed
Update JSONInRactorTest to handle Ruby 3.5 Ractors.
1 parent 90f00b1 commit d42b369

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/json/ractor_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
end
99

1010
class JSONInRactorTest < Test::Unit::TestCase
11+
unless Ractor.method_defined?(:value)
12+
module RactorBackport
13+
refine Ractor do
14+
alias_method :value, :take
15+
end
16+
end
17+
18+
using RactorBackport
19+
end
20+
1121
def test_generate
1222
pid = fork do
1323
r = Ractor.new do

0 commit comments

Comments
 (0)