mongoid/mongoid — pull request #2795 by tombruijn (2013-02-07 15:02:23+00:00)
Title: Fix broken milliseconds precision

Hi! issue #2741 has returned
It was back in release v3.0.21, after being fixed in v3.0.20.
(The Float decimal inaccuracy problem.)

Commit where it broke again: c25e1fe7b80f558b50dd4f8e3fe6fe6785e74395

This time I tried to fix it myself. The problem was that `Time` does not respond to `sec_fraction` (`Date` [does](http://apidock.com/ruby/Date/sec_fraction)). Instead it uses the [method](http://apidock.com/ruby/Time/subsec) `subsec` for that purpose.

I added the case and specs. The specs don't cover the 100% (because you can't check every number in existence), but it's better than nothing.