diff options
-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 |