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

ruby-changes:58191

From: Nobuyoshi <ko1@a...>
Date: Thu, 10 Oct 2019 14:52:19 +0900 (JST)
Subject: [ruby-changes:58191] dc2b301994 (master): [rubygems/rubygems] Restrict possible date range

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

From dc2b301994ed9de75477ece30111553d4f1ee2e3 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 7 Oct 2019 00:08:32 +0900
Subject: [rubygems/rubygems] Restrict possible date range

https://github.com/rubygems/rubygems/commit/1bd77f53df

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


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

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