[前][次][番号順一覧][スレッド一覧]

ruby-changes:58128

From: Nobuyoshi <ko1@a...>
Date: Sat, 5 Oct 2019 10:58:46 +0900 (JST)
Subject: [ruby-changes:58128] 6dfe0c9dcd (master): [rubygems/rubygems] The date might have advanced since TODAY has been set

https://git.ruby-lang.org/ruby.git/commit/?id=6dfe0c9dcd

From 6dfe0c9dcd8327dfce5f689d6a184c0f3a146a24 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 1 Oct 2019 10:41:10 +0900
Subject: [rubygems/rubygems] The date might have advanced since TODAY has been
 set

https://bugs.ruby-lang.org/issues/16189

https://github.com/rubygems/rubygems/commit/e331222163

diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index a447ede..7fb7400 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1694,7 +1694,9 @@ dependencies: [] https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_specification.rb#L1694
   end
 
   def test_date
-    assert_equal Gem::Specification::TODAY, @a1.date
+    today = Gem::Specification::TODAY
+    tomorrow = today + 86401    # +1 for leap second
+    assert_operator (today..tomorrow), :cover?, @a1.date
   end
 
   def test_date_equals_date
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]