1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Separate test used by test_ractor for Ractor in test_time.rb

This commit is contained in:
Hiroshi SHIBATA 2021-04-22 13:35:30 +09:00
parent 270b16e70c
commit 01f131457f
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -64,8 +64,10 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc:
if defined?(Ractor)
def test_rfc2822_ractor
assert_ractor(<<~RUBY, require: 'time')
actual = Ractor.new { Time.rfc2822("Fri, 21 Nov 1997 09:55:06 -0600") }.take
assert_equal(Time.utc(1997, 11, 21, 9, 55, 6) + 6 * 3600, actual)
RUBY
end
end