Sha256: f9db67e0947dc348ab8fa07f9e4369d29900fdccc51b2f6f1b5e5d554f1d72e5

Contents?: true

Size: 293 Bytes

Versions: 11

Compression:

Stored size: 293 Bytes

Contents

require 'psych/helper'
require 'date'

module Psych
  class TestDateTime < TestCase
    def test_string_tag
      dt = DateTime.now
      yaml = Psych.dump dt
      assert_match(/DateTime/, yaml)
    end

    def test_round_trip
      dt = DateTime.now
      assert_cycle dt
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
psych-1.3.4 test/psych/test_date_time.rb
psych-1.3.3 test/psych/test_date_time.rb
psych-1.3.2 test/psych/test_date_time.rb
psych-1.3.1 test/psych/test_date_time.rb
psych-1.3.0 test/psych/test_date_time.rb
psych-1.2.2 test/psych/test_date_time.rb
psych-1.2.2.rc1 test/psych/test_date_time.rb
psych-1.2.1 test/psych/test_date_time.rb
psych-1.2.0 test/psych/test_date_time.rb
psych-1.1.1 test/psych/test_date_time.rb
psych-1.1.0 test/psych/test_date_time.rb