rubyspec/rubyspec — pull request #150 by markburns (2012-08-16 11:20:02+00:00)
Title: specs for DateTime.parse

I initially opened https://github.com/rubinius/rubinius/pull/1863 but looks like here is a better place to update the specs.

I'm adding this spec as I believe it may highlight a bug in all ruby implementations of DateTime.parse

Namely that seconds greater than 59 are parsed as 59 whereas hours, minutes, etc. with incorrect values raise an ArgumentError.

Also according to the iso8601 spec http://en.wikipedia.org/wiki/ISO_8601, 60 seconds is a valid value as it can be used to represent a leap second.