Fixed broken test that verifies items are present

This commit is contained in:
Damon Maneice 2018-02-09 16:57:24 -05:00
Родитель b7d54e619f
Коммит d3e5c25ce9
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -75,7 +75,8 @@ describe "collections" do
REQUIRED_COLLECTION_METADATA_KEYS.each do |key|
assert metadata.key?(key), "expected to have '#{key}' defined for collection"
metadata_value = metadata[key].is_a?(Array) ? metadata[key] : [metadata[key]]
assert metadata_value.all? { |value| value&.strip&.size&.positive? },
assert !metadata_value.empty? &&
metadata_value.all? { |value| value&.strip&.size&.positive? },
"expected to have a value for '#{key}'"
end
end