Skip to content

Commit

Permalink
The date might have advanced since TODAY has been set
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 1, 2019
1 parent f6dce19 commit e331222
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/rubygems/test_gem_specification.rb
Expand Up @@ -1694,7 +1694,9 @@ def test_contains_requirable_file_eh_extension_java_platform
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
Expand Down

0 comments on commit e331222

Please sign in to comment.