diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-07 00:08:32 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-10 14:51:47 +0900 |
commit | dc2b301994ed9de75477ece30111553d4f1ee2e3 (patch) | |
tree | 9f630b1f974df843da92ae544062301d3a352679 | |
parent | 717b72a8af6b99ca79fd5bbe52ba4bd16b038bf6 (diff) | |
download | ruby-dc2b301994ed9de75477ece30111553d4f1ee2e3.tar.gz |
[rubygems/rubygems] Restrict possible date range
https://github.com/rubygems/rubygems/commit/1bd77f53df
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 5 |
1 files 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 |