Sha256: 468274525cadb2177fa08472163cb2ff999c8909e8dd27ea79d290eb3eb662b4

Contents?: true

Size: 533 Bytes

Versions: 18

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

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

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.8.12 test/extra/core_ext/test_time.rb
nanoc-4.8.11 test/extra/core_ext/test_time.rb
nanoc-4.8.10 test/extra/core_ext/test_time.rb
nanoc-4.8.9 test/extra/core_ext/test_time.rb
nanoc-4.8.8 test/extra/core_ext/test_time.rb
nanoc-4.8.7 test/extra/core_ext/test_time.rb
nanoc-4.8.6 test/extra/core_ext/test_time.rb
nanoc-4.8.5 test/extra/core_ext/test_time.rb
nanoc-4.8.4 test/extra/core_ext/test_time.rb
nanoc-4.8.3 test/extra/core_ext/test_time.rb
nanoc-4.8.2 test/extra/core_ext/test_time.rb
nanoc-4.8.1 test/extra/core_ext/test_time.rb
nanoc-4.8.0 test/extra/core_ext/test_time.rb
nanoc-4.7.14 test/extra/core_ext/test_time.rb
nanoc-4.7.13 test/extra/core_ext/test_time.rb
nanoc-4.7.12 test/extra/core_ext/test_time.rb
nanoc-4.7.11 test/extra/core_ext/test_time.rb
nanoc-4.7.10 test/extra/core_ext/test_time.rb