Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1665)

Unified Diff: sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart

Issue 448933002: Support Git in pub global activate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/run/unknown_package_test.dart b/sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart
similarity index 54%
copy from sdk/lib/_internal/pub/test/global/run/unknown_package_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart
index e5a4bab07184a447763a5b0a93b311f84f84551a..6b840b8fb0b7d8bff2a699f2d1ae1d44422de924 100644
--- a/sdk/lib/_internal/pub/test/global/run/unknown_package_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/missing_git_repo_test.dart
@@ -4,16 +4,15 @@
import 'package:scheduled_test/scheduled_test.dart';
-import '../../../lib/src/exit_codes.dart' as exit_codes;
import '../../test_pub.dart';
main() {
initConfig();
- integration('errors if the package is not activated', () {
- servePackages([]);
+ integration('fails if the Git repo does not exist', () {
+ ensureGit();
- schedulePub(args: ["global", "run", "foo:bar"],
- error: startsWith("No active package foo."),
- exitCode: exit_codes.DATA);
+ schedulePub(args: ["global", "activate", "-sgit", "../nope.git"],
+ error: contains("repository '../nope.git' does not exist"),
+ exitCode: 1);
});
}

Powered by Google App Engine
This is Rietveld 408576698