Sha256: 95d75ad234f29708d96029d2a24f543880f560e03e679bd47eca7bd8f16337d5
Contents?: true
Size: 298 Bytes
Versions: 5
Compression:
Stored size: 298 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('2006-04-20 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
5 entries across 5 versions & 1 rubygems