Sha256: 3e14e129dda2bcaea6d5212e8f5f86941b6a58f475d5082fa96ff921fe5bc714

Contents?: true

Size: 322 Bytes

Versions: 15

Compression:

Stored size: 322 Bytes

Contents

# encoding: utf-8

class Nanoc::ExtraCoreExtTimeTest < Nanoc::TestCase

  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

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.7.4 test/extra/core_ext/test_time.rb
nanoc-3.7.3 test/extra/core_ext/test_time.rb
nanoc-3.7.2 test/extra/core_ext/test_time.rb
nanoc-3.7.1 test/extra/core_ext/test_time.rb
nanoc-3.7.0 test/extra/core_ext/test_time.rb
nanoc-3.6.11 test/extra/core_ext/test_time.rb
nanoc-3.6.10 test/extra/core_ext/test_time.rb
nanoc-3.6.9 test/extra/core_ext/test_time.rb
nanoc-3.6.8 test/extra/core_ext/test_time.rb
nanoc-3.6.7 test/extra/core_ext/test_time.rb
nanoc-3.6.6 test/extra/core_ext/test_time.rb
nanoc-3.6.5 test/extra/core_ext/test_time.rb
nanoc-3.6.4 test/extra/core_ext/test_time.rb
nanoc-3.6.3 test/extra/core_ext/test_time.rb
nanoc-3.6.2 test/extra/core_ext/test_time.rb