/vendor/gems/facets-2.4.5/test/core/time/test_hence.rb
Ruby | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | b20295d3f7282670d1a06490b68242ec MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/time/hence'
- require 'test/unit'
- require 'time'
- class TC_Time_Hence < Test::Unit::TestCase
- def test_hence
- t1 = Time.parse('8/20/2005 15:37')
- t2 = t1.hence(5, :months)
- assert_equal( 1, t2.month )
- end
- end