[rubygems/rubygems] Restrict possible date range
https://github.com/rubygems/rubygems/commit/1bd77f53df
This commit is contained in:
parent
717b72a8af
commit
dc2b301994
@ -1695,8 +1695,9 @@ dependencies: []
|
|||||||
|
|
||||||
def test_date
|
def test_date
|
||||||
today = Gem::Specification::TODAY
|
today = Gem::Specification::TODAY
|
||||||
tomorrow = today + 86401 # +1 for leap second
|
a1_date = @a1.date
|
||||||
assert_operator (today..tomorrow), :cover?, @a1.date
|
now = Time.now
|
||||||
|
assert_operator (today..now), :cover?, a1_date
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_date_equals_date
|
def test_date_equals_date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user