From dc2b301994ed9de75477ece30111553d4f1ee2e3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 7 Oct 2019 00:08:32 +0900 Subject: [PATCH] [rubygems/rubygems] Restrict possible date range https://github.com/rubygems/rubygems/commit/1bd77f53df --- test/rubygems/test_gem_specification.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 7fb74004f0..c10aa99e93 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1695,8 +1695,9 @@ dependencies: [] 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