summaryrefslogtreecommitdiff
path: root/test/rake/test_rake_late_time.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rake/test_rake_late_time.rb')
-rw-r--r--test/rake/test_rake_late_time.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rake/test_rake_late_time.rb b/test/rake/test_rake_late_time.rb
new file mode 100644
index 0000000000..4b910a7085
--- /dev/null
+++ b/test/rake/test_rake_late_time.rb
@@ -0,0 +1,18 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeLateTime < Rake::TestCase
+ def test_late_time_comparisons
+ late = Rake::LATE
+ assert_equal late, late
+ assert late >= Time.now
+ assert late > Time.now
+ assert late != Time.now
+ assert Time.now < late
+ assert Time.now <= late
+ assert Time.now != late
+ end
+
+ def test_to_s
+ assert_equal '<LATE TIME>', Rake::LATE.to_s
+ end
+end