test/test_earlytime.rb in jimweirich-rake-0.8.1.10 vs test/test_earlytime.rb in jimweirich-rake-0.8.1.11
- old
+ new
@@ -4,11 +4,11 @@
require 'rake'
class TestEarlyTime < Test::Unit::TestCase
def test_create
early = Rake::EarlyTime.instance
- time = Time.mktime(1920, 1, 1, 0, 0, 0)
+ time = Time.mktime(1970, 1, 1, 0, 0, 0)
assert early <= Time.now
assert early < Time.now
assert early != Time.now
assert Time.now > early
assert Time.now >= early
@@ -19,10 +19,10 @@
early = Rake::EarlyTime.instance
assert_equal early, early, "two early times should be equal"
end
def test_original_time_compare_is_not_messed_up
- t1 = Time.mktime(1920, 1, 1, 0, 0, 0)
+ t1 = Time.mktime(1970, 1, 1, 0, 0, 0)
t2 = Time.now
assert t1 < t2
assert t2 > t1
assert t1 == t1
assert t2 == t2