Sha256: 6b1fe65b20d245a4dfc6e0db2d8cc7f92fdd4a8d629f21e44369ae4a259ae028

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

require 'facets/time/hence'
require 'test/unit'
require 'time'

class TC_Time_Hence < Test::Unit::TestCase

  def test_hence
    t1 = Time.parse('8/20/2005 15:37')
    t2 = t1.hence(5, :months)
    assert_equal( 1, t2.month )
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.4.2 test/core/time/test_hence.rb
facets-2.4.3 test/core/time/test_hence.rb
facets-2.4.4 test/core/time/test_hence.rb
facets-2.4.5 test/core/time/test_hence.rb