diff options
author | Matt Robinson <matt@puppetlabs.com> | 2010-11-08 09:41:13 -0800 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-11-08 19:52:16 -0800 |
commit | aad700802b9a82dd17dd3f7c7e2557c432ac2aad (patch) | |
tree | eaa48f5002b1de6e3ed5380fec03541f4cc8fb8e /lib/puppet/util/autoload.rb | |
parent | 21db472640c8e606565c9693d4737f40a1bf8cce (diff) | |
download | puppet-aad700802b9a82dd17dd3f7c7e2557c432ac2aad.tar.gz puppet-aad700802b9a82dd17dd3f7c7e2557c432ac2aad.tar.xz puppet-aad700802b9a82dd17dd3f7c7e2557c432ac2aad.zip |
[#5225] Fix spec failure that depended on time change
Turns out that:
zero = Time.now # Reset the current time to X:00:00
current = zero - (zero.hour * 3600) - (zero.min * 60) - zero.sec
current is actually 1am on a day where the time falls back (Nov 7th),
not midnight as the test expected.
Reviewed-by: Paul Berry <paul@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions