Sha256: fb34c6b2bf588ff84440b62cee5be614ad13198ba09fbf93fdf6b8d239bc3427

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/time/change.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/time/change.rb'


  require 'test/unit'
  require 'time'

  class TCTime < Test::Unit::TestCase

    def setup
      @t = Time.parse('4/20/2006 15:37')
    end

    def test_change
      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

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/time/test_change.rb