From 8c26399505aec74e2abd5a69743e31ea2be3c707 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Mon, 11 Apr 2011 13:53:00 +0200 Subject: [PATCH] fix failing spec --- lib/sinatra/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index f90df8a4..ca82ea4e 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -341,7 +341,7 @@ module Sinatra values << {} unless values.last.kind_of?(Hash) if amount.is_a? Integer - time = Time.now + amount + time = Time.now + amount.to_i max_age = amount else time = time_for amount