]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#11873) time function spec failure on Fixnum matcher
authorKen Barber <ken@bob.sh>
Tue, 10 Jan 2012 18:58:07 +0000 (18:58 +0000)
committerKen Barber <ken@bob.sh>
Tue, 10 Jan 2012 18:58:07 +0000 (18:58 +0000)
commit7d545f0d600d259229eee27ae4be373e814e5dfe
tree07fb3d36b83855dc1273616d821370329c9e14f6
parent1370c64df9c00f7627f9ddd758d8bbdb5a36d03e
(#11873) time function spec failure on Fixnum matcher

The rspec code for the time function was trying to match the type to be a
'Fixnum'. Ruby will sometimes make this a 'Bignum' depending on its internals
and we can't rely on this to be true all the time.

This patch just makes sure the type is an integer instead.
spec/unit/puppet/parser/functions/time_spec.rb