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:
parent
1829f977d2
commit
8e0aa53d3c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue