Sha256: 9e00afdb054acc1192cf01f310a8b9a420ab02f07e4d930310b7b15c2baf2688

Contents?: true

Size: 361 Bytes

Versions: 17

Compression:

Stored size: 361 Bytes

Contents

# encoding: utf-8

class Nanoc::ExtraCoreExtTimeTest < MiniTest::Unit::TestCase

  include Nanoc::TestHelpers

  def test_to_iso8601_date
    assert_equal('2008-05-19', Time.utc(2008, 5, 19, 14, 20, 0, 0).to_iso8601_date)
  end

  def test_to_iso8601_time
    assert_equal('2008-05-19T14:20:00Z', Time.utc(2008, 5, 19, 14, 20, 0, 0).to_iso8601_time)
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
nanoc-3.6.1 test/extra/core_ext/test_time.rb
nanoc-3.6.0 test/extra/core_ext/test_time.rb
nanoc-3.5.0 test/extra/core_ext/test_time.rb
nanoc-3.5.0b2 test/extra/core_ext/test_time.rb
nanoc-3.5.0b1 test/extra/core_ext/test_time.rb
nanoc-3.4.3 test/extra/core_ext/test_time.rb
nanoc-3.4.2 test/extra/core_ext/test_time.rb
nanoc-3.4.1 test/extra/core_ext/test_time.rb
nanoc-3.4.0 test/extra/core_ext/test_time.rb
nanoc-3.3.7 test/extra/core_ext/test_time.rb
nanoc-3.3.6 test/extra/core_ext/test_time.rb
nanoc-3.3.5 test/extra/core_ext/test_time.rb
nanoc-3.3.4 test/extra/core_ext/test_time.rb
nanoc-3.3.3 test/extra/core_ext/test_time.rb
nanoc-3.3.2 test/extra/core_ext/test_time.rb
nanoc-3.3.1 test/extra/core_ext/test_time.rb
nanoc-3.3.0 test/extra/core_ext/test_time.rb