From 725d6f4970423c6a28d1b0e1864c3651528d5670 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Tue, 26 Nov 2013 19:48:03 +0000 Subject: * ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME strings. * test/psych/test_date_time.rb: test for change. Fixes: https://github.com/tenderlove/psych/issues/171 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/psych/test_date_time.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/psych/test_date_time.rb') diff --git a/test/psych/test_date_time.rb b/test/psych/test_date_time.rb index 9a8e37bc67..91de6a4841 100644 --- a/test/psych/test_date_time.rb +++ b/test/psych/test_date_time.rb @@ -3,6 +3,10 @@ require 'date' module Psych class TestDateTime < TestCase + def test_invalid_date + assert_cycle "2013-10-31T10:40:07-000000000000033" + end + def test_string_tag dt = DateTime.now yaml = Psych.dump dt -- cgit v1.2.3