[ruby/time] Removed workaround for assert_ractor

https://github.com/ruby/time/commit/337410e971
This commit is contained in:
Hiroshi SHIBATA 2025-06-04 14:10:31 +09:00 committed by git
parent 04b26db5ef
commit 803526786a

View File

@ -74,9 +74,6 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc:
if defined?(Ractor)
def test_rfc2822_ractor
assert_ractor(<<~RUBY, require: 'time')
class Ractor
alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
end
actual = Ractor.new { Time.rfc2822("Fri, 21 Nov 1997 09:55:06 -0600") }.value
assert_equal(Time.utc(1997, 11, 21, 9, 55, 6) + 6 * 3600, actual)
RUBY