fix timestamp test

This commit is contained in:
Emil Tin 2013-04-16 16:55:57 +02:00
parent edf5a0f677
commit af490bae8e

View File

@ -13,7 +13,11 @@ class Hash
end
def request_path path, params={}
uri = URI.parse ["#{HOST}/#{path}",params.to_param].join('&')
if params.any?
uri = URI.parse ["#{HOST}/#{path}",params.to_param].join('&')
else
uri = URI.parse "#{HOST}/#{path}"
end
Timeout.timeout(REQUEST_TIMEOUT) do
Net::HTTP.get_response uri
end