Fix _stanza
test.
This commit is contained in:
parent
1948729ec8
commit
89845e7f76
@ -74,7 +74,7 @@ module Hbc
|
|||||||
value = value[artifact_name] if artifact_name
|
value = value[artifact_name] if artifact_name
|
||||||
end
|
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
|
stanza_name = artifact_name ? artifact_name : stanza
|
||||||
raise CaskError, "no such stanza '#{stanza_name}' on Cask '#{cask}'"
|
raise CaskError, "no such stanza '#{stanza_name}' on Cask '#{cask}'"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user