rubinius/rubinius — pull request #1550 by leocassarani (2012-02-07 19:14:59+00:00)
Title: Fix two 1.9 YAML specs by calling #to_time on DateTime objects

When trying to replicate the functionality that the specs were testing on MRI, the result of calling `YAML.load` is a `Time` object, not a `DateTime` object like in Rbx. The `DateTime` class doesn't implement `#usec`, so naturally the specs were failing. Making `YAML.load` return a `Time` object fixes the failing specs without breaking any of the others.

I don't know the inner workings of YAML well enough to know if this is a sensible change, so I'm hoping someone who does will review this pull request.