HomePhorge

(maint) Change spec test to pass on ruby 2.2
d183826136caUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Change spec test to pass on ruby 2.2

Prior to this change, this spec test failed on ruby 2.2.0-rc1 with:

Failure/Error: Time.stubs(:now).returns(Time.parse("2011-01-06 12:00:00 UTC"))
NoMethodError:
  undefined method `utc_offset' for nil:NilClass

I didn't track down the root cause of this failure, but just
normalized this stub to use Time.utc, which (along with Time.local)
is the more common way of stubbing Time objects in the codebase.

Details

Provenance
Kylo Ginsberg <kylo@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU71d2c5514668: Merge branch 'stable'
Branches
Unknown
Tags
Unknown

Event Timeline

Kylo Ginsberg <kylo@puppetlabs.com> committed rPUd183826136ca: (maint) Change spec test to pass on ruby 2.2 (authored by Kylo Ginsberg <kylo@puppetlabs.com>).Dec 22 2014, 7:11 PM