mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
3908d5d330
* test/rake: ditto. * NEWS: ditto. * test/lib/minitest/unit.rb: Add compatibility shim for minitest 5. This only provides minitest 5 unit test naming compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
18 lines
419 B
Ruby
18 lines
419 B
Ruby
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
|