1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

catch nil value instead of erroring in tests

This commit is contained in:
geemus 2010-06-10 11:43:21 -07:00
parent 1829f977d2
commit 8e0aa53d3c

View file

@ -51,6 +51,8 @@ module Shindo
type = value.first
if type.is_a?(Hash)
valid &&= formats_kernel({:element => element}, {:element => type}, false)
elsif type.nil?
p "#{key} => #{value}"
else
valid &&= element.is_a?(type)
end