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

Unified Diff: sdk/lib/_internal/pub/test/global/deactivate/git_package_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/deactivate/git_package_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart b/sdk/lib/_internal/pub/test/global/deactivate/git_package_test.dart
similarity index 60%
copy from sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart
copy to sdk/lib/_internal/pub/test/global/deactivate/git_package_test.dart
index b8d9b2c2645215fb066761c0f5aa50988deb0542..cc191913b5cb662dec824b80a8e03dbd6f3edcf2 100644
--- a/sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart
+++ b/sdk/lib/_internal/pub/test/global/deactivate/git_package_test.dart
@@ -7,18 +7,19 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('runs a script in a path package', () {
- d.dir("foo", [
+ integration('deactivates an active Git package', () {
+ ensureGit();
+
+ d.git('foo.git', [
d.libPubspec("foo", "1.0.0"),
d.dir("bin", [
d.file("foo.dart", "main() => print('ok');")
])
]).create();
- schedulePub(args: ["global", "activate", "--source", "path", "../foo"]);
+ schedulePub(args: ["global", "activate", "-sgit", "../foo.git"]);
- var pub = pubRun(global: true, args: ["foo"]);
- pub.stdout.expect("ok");
- pub.shouldExit();
+ schedulePub(args: ["global", "deactivate", "foo"],
+ output: 'Deactivated package foo from Git repository "../foo.git".');
});
}

Powered by Google App Engine
This is Rietveld 408576698