Sha256: 49cb2dee6642440b530ae834251f16b7a2489edcceebd3d368ef9531f7cb8597
Contents?: true
Size: 297 Bytes
Versions: 11
Compression:
Stored size: 297 Bytes
Contents
require 'facets/time/change.rb' require 'test/unit' require 'time' class TC_Time_Change < Test::Unit::TestCase def test_change t = Time.parse('4/20/2006 15:37') n = Time.now n = n.change( :month=>4, :day=>20, :hour=>15, :min=>37, :year=>2006 ) assert_equal( t, n ) end end
Version data entries
11 entries across 11 versions & 1 rubygems