Add messages for display name assertions

This commit is contained in:
Tal Safran 2018-02-14 16:20:46 -08:00
Родитель c0cae4e2ca
Коммит 22d008da7a
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -110,8 +110,11 @@ describe "collections" do
metadata = metadata_for(collections_dir, collection) || {}
display_name = metadata["display_name"]
assert display_name
assert display_name.length <= MAX_COLLECTION_DISPLAY_NAME_LENGTH
assert display_name, "must have a value for display name"
assert display_name.length <= MAX_COLLECTION_DISPLAY_NAME_LENGTH,
"must have a display name no more than " \
"#{MAX_COLLECTION_DISPLAY_NAME_LENGTH} characters " \
"(currently #{display_name.length})"
end
it "has valid created_by value" do