Fix _stanza test.

This commit is contained in:
Markus Reiter 2017-11-24 19:39:49 +01:00
parent 1948729ec8
commit 89845e7f76

View File

@ -74,7 +74,7 @@ module Hbc
value = value[artifact_name] if artifact_name
end
if value.nil? || (value.respond_to?(:to_a) && value.to_a.empty?)
if value.nil? || (value.respond_to?(:empty?) && value.empty?)
stanza_name = artifact_name ? artifact_name : stanza
raise CaskError, "no such stanza '#{stanza_name}' on Cask '#{cask}'"
end