Added test case to reproduce issue #1311.

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
Making the test pass

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
using an inline if

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
FIxing bad indentation

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
Adding comment to explain how the Date works in Java (Using JODA Time lib) and how it should work in Ruby to keep the mri compatiblity

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
Added more tests cases to fully cover all the expected behavior on
DateTime#<=> method.

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
Comparing two DateTimes (and sub milliseconds) using <=> and returning -1, 0, or +1 depending
on whether the receiver is less than, equal to, or greater than the
other object.

Signed-off-by: Charles Oliver Nutter <headius@headius.com>
Fix spelling of test for #1311.