/vendor/gems/facets-2.4.5/test/core/time/test_to_time.rb
Ruby | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | a8d3f20d546be917045bf76059e32cfe MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/time/to_time'
- require 'test/unit'
- class TestTimeConversion < Test::Unit::TestCase
- def test_to_time
- t = Time.now #parse('4/20/2005 15:37')
- assert_instance_of( ::Time, t.to_time )
- end
- end