Index: utils/tests/pub/install/hosted/install_test.dart |
diff --git a/utils/tests/pub/install/hosted/install_test.dart b/utils/tests/pub/install/hosted/install_test.dart |
index 1ed4f404e9f58878424cb6e2bb9663d3dfb45647..5bc120c3d7a9c2d4cc57e6b9e8e193bfd2adab3f 100644 |
--- a/utils/tests/pub/install/hosted/install_test.dart |
+++ b/utils/tests/pub/install/hosted/install_test.dart |
@@ -9,6 +9,7 @@ import 'dart:io'; |
import '../../test_pub.dart'; |
main() { |
+ initConfig(); |
integration('installs a package from a pub server', () { |
servePackages([package("foo", "1.2.3")]); |
@@ -20,4 +21,15 @@ main() { |
cacheDir({"foo": "1.2.3"}).scheduleValidate(); |
packagesDir({"foo": "1.2.3"}).scheduleValidate(); |
}); |
+ |
+ integration('URL encodes the package name', () { |
+ servePackages([]); |
+ |
+ appDir([dependency("bad name!", "1.2.3")]).scheduleCreate(); |
+ |
+ schedulePub(args: ['install'], |
+ error: new RegExp('Could not find package "bad name!" at ' |
+ 'http://localhost:'), |
+ exitCode: 1); |
+ }); |
} |