diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-04-22 13:35:30 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-04-22 13:35:30 +0900 |
commit | 01f131457ffac39f018b342fbd5f7598171d10fa (patch) | |
tree | 02317d1f8d27bd4f3f0eef320f73a22ac7dafebc | |
parent | 270b16e70c6b9f3e4b497d481a00941e13a1f056 (diff) |
Separate test used by test_ractor for Ractor in test_time.rb
-rw-r--r-- | test/test_time.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_time.rb b/test/test_time.rb index d56daeb626..b50d8417cf 100644 --- a/test/test_time.rb +++ b/test/test_time.rb @@ -64,8 +64,10 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc: if defined?(Ractor) def test_rfc2822_ractor - 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) + 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 |