Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 5d5499fd5a49d90c727876ee4441c8b6cf78866b..6e11c63c3293562dbfeb52553c7b9c60dfe26f3d 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -1173,7 +1173,8 @@ class TarFileDescriptor extends Descriptor { |
} |
} |
-/// A descriptor that validates that no file exists with the given name. |
+/// A descriptor that validates that no file or directory exists with the given |
+/// name. |
class NothingDescriptor extends Descriptor { |
NothingDescriptor(String name) : super(name); |
@@ -1183,7 +1184,7 @@ class NothingDescriptor extends Descriptor { |
Future validate(String dir) { |
return defer(() { |
if (entryExists(path.join(dir, name))) { |
- throw new TestFailure('File $name in $dir should not exist.'); |
+ throw new TestFailure('Entry $name in $dir should not exist.'); |
} |
}); |
} |