зеркало из https://github.com/github/explore.git
Fixed broken test that verifies items are present
This commit is contained in:
Родитель
b7d54e619f
Коммит
d3e5c25ce9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче