puppetlabs/puppet — pull request #543 by daniel-pittman (2012-02-29 21:23:53+00:00)
Title: Maint/2.7.x/test failure after activerecord cleanup

This test stubbed time, but didn't catch every possible avenue for creating a
new instance based no the current time of day. This, combined with the
Ruby 1.9.2 runtime moving to support fractional seconds more broadly, led to
two "equal" times that didn't compare as identical.

We really don't care about the exact time, so much as that we update it
appropriately on the object, so an approximate comparison is more robust than
trying to stub out and freeze time.

Signed-off-by: Daniel Pittman