test/integration/cookbooks/node-tests/libraries/helper.rb in kitchen-nodes-0.6.4 vs test/integration/cookbooks/node-tests/libraries/helper.rb in kitchen-nodes-0.6.5
- old
+ new
@@ -9,10 +9,10 @@
nodes = search(:node, query)
end
end
if nodes.count == 0 || !nodes[0].key?('ipaddress')
- fail "Unable to find any nodes meeting the search criteria '#{query}'!"
+ raise "Unable to find any nodes meeting the search criteria '#{query}'!"
end
nodes
end