HomePhorge

(#5148) Fix failing spec due to timezone
e3aec14c2edeUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#5148) Fix failing spec due to timezone

Time.parse(...) will yield a string in the local timezone. So when
this spec was run in a non -0700 timezone, it was failing, because
it was comparing a string in local time to a string in -0700. This
fixes it to compare to the local string representation of the time.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8bd80a99a259: (#5148) Add support for PSON to facts
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUe3aec14c2ede: (#5148) Fix failing spec due to timezone (authored by Nick Lewis <nick@puppetlabs.com>).Mar 4 2011, 11:24 PM