bugfix: call lambda correctly

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-06-10 17:16:05 +02:00
parent 5ba7fb0386
commit 1833ff9aa0

View file

@ -69,11 +69,11 @@ module Vulcano
}
meta['checks'].each do |k,v|
invalid("Missing impact for rule #{k}") if v['impact'].nil?
invalid("Impact cannot be larger than 1.0 for rule #{k}") if v['impact'] > 1.0
invalid("Impact cannot be less than 0.0 for rule #{k}") if v['impact'] < 0.0
invalid("Missing title for rule #{k}") if v['title'].nil? || v['title'] == k
invalid("Missing description for rule #{k}") if v['desc'].nil?
invalid.("Missing impact for rule #{k}") if v['impact'].nil?
invalid.("Impact cannot be larger than 1.0 for rule #{k}") if v['impact'] > 1.0
invalid.("Impact cannot be less than 0.0 for rule #{k}") if v['impact'] < 0.0
invalid.("Missing title for rule #{k}") if v['title'].nil? || v['title'] == k
invalid.("Missing description for rule #{k}") if v['desc'].nil?
end
@log.ok "Valid spec file in #{f}" if valid && specs.instance_variable_get(:@invalid_calls).empty?