Sha256: f8460522f2f37a092cd8e754fa9e3e00eb7a7b87ca39250bb85a070cc01ca326

Contents?: true

Size: 502 Bytes

Versions: 22

Compression:

Stored size: 502 Bytes

Contents

require 'helper'

class Nanoc::ExtraCoreExtTimeTest < Nanoc::TestCase
  def test___nanoc_to_iso8601_date_utc
    assert_equal('2008-05-19', Time.utc(2008, 5, 19, 14, 20, 0, 0).__nanoc_to_iso8601_date)
  end

  def test___nanoc_to_iso8601_date_non_utc
    assert_equal('2008-05-18', Time.new(2008, 5, 19, 0, 0, 0, '+02:00').__nanoc_to_iso8601_date)
  end

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
nanoc-4.7.9 test/extra/core_ext/test_time.rb
nanoc-4.7.8 test/extra/core_ext/test_time.rb
nanoc-4.7.7 test/extra/core_ext/test_time.rb
nanoc-4.7.6 test/extra/core_ext/test_time.rb
nanoc-4.7.5 test/extra/core_ext/test_time.rb
nanoc-4.7.4 test/extra/core_ext/test_time.rb
nanoc-4.7.3 test/extra/core_ext/test_time.rb
nanoc-4.7.2 test/extra/core_ext/test_time.rb
nanoc-4.7.1 test/extra/core_ext/test_time.rb
nanoc-4.7.0 test/extra/core_ext/test_time.rb
nanoc-4.6.4 test/extra/core_ext/test_time.rb
nanoc-4.6.3 test/extra/core_ext/test_time.rb
nanoc-4.6.2 test/extra/core_ext/test_time.rb
nanoc-4.6.1 test/extra/core_ext/test_time.rb
nanoc-4.6.0 test/extra/core_ext/test_time.rb
nanoc-4.5.4 test/extra/core_ext/test_time.rb
nanoc-4.5.3 test/extra/core_ext/test_time.rb
nanoc-4.5.2 test/extra/core_ext/test_time.rb
nanoc-4.5.1 test/extra/core_ext/test_time.rb
nanoc-4.5.0 test/extra/core_ext/test_time.rb