fix failing spec
This commit is contained in:
parent
5a91dce044
commit
8c26399505
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue