Sha256: 2c47de2b9136e751ae5ac134a1b8b0742ddf949803d9e4fb33391c9a6e65f775
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
require_relative '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 def test_alias_with_time t = Time.now h = {:a => t, :b => t} yaml = Psych.dump h assert_match('&', yaml) assert_match('*', yaml) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
psych-shopifork-2.0.0 | test/psych/test_date_time.rb |
psych-2.0.1 | test/psych/test_date_time.rb |