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

Version Path
facets-2.8.4 test/core/time/test_change.rb
facets-2.8.3 test/core/time/test_change.rb
facets-2.8.2 test/core/time/test_change.rb
facets-2.8.1 test/core/time/test_change.rb
facets-2.8.0 test/core/time/test_change.rb