summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-02-17 16:30:41 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-02-17 16:30:41 -0800
commit7e3a927e6b7e1a63bc16b9c74eb931dc3eb6a983 (patch)
tree399051758935ea5e8a2096093fcfa9374f426875 /test
parent5ba21f0487c01ae13abbfdaeab8641a19f8bbee5 (diff)
downloadpsych-7e3a927e6b7e1a63bc16b9c74eb931dc3eb6a983.zip
fixing scalar scanner for dates with timezone like "-08:00". thanks Peter McLain!
Diffstat (limited to 'test')
-rw-r--r--test/test_scalar_scanner.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_scalar_scanner.rb b/test/test_scalar_scanner.rb
index 483fa21..eaf6c6e 100644
--- a/test/test_scalar_scanner.rb
+++ b/test/test_scalar_scanner.rb
@@ -6,6 +6,7 @@ class TestScalarScanner < MiniTest::Unit::TestCase
[ '2001-12-15T02:59:43.1Z',
'2001-12-14t21:59:43.10-05:00',
'2001-12-14 21:59:43.10 -5',
+ '2010-01-06 00:00:00 -08:00',
'2001-12-15 2:59:43.10',
].each do |time|
ss = Psych::ScalarScanner.new