fix failing spec

This commit is contained in:
Konstantin Haase 2011-04-11 13:53:00 +02:00
parent 5a91dce044
commit 8c26399505
1 changed files with 1 additions and 1 deletions

View File

@ -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