From 7d545f0d600d259229eee27ae4be373e814e5dfe Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Tue, 10 Jan 2012 18:58:07 +0000 Subject: [PATCH] (#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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/puppet/parser/functions/time_spec.rb b/spec/unit/puppet/parser/functions/time_spec.rb index 666e8e0..5d6cd97 100644 --- a/spec/unit/puppet/parser/functions/time_spec.rb +++ b/spec/unit/puppet/parser/functions/time_spec.rb @@ -20,7 +20,7 @@ describe "the time function" do it "should return a number" do result = @scope.function_time([]) - result.class.should(eq(Fixnum)) + result.should be_an(Integer) end it "should be higher then when I wrote this test" do