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

Unified Diff: sdk/lib/_internal/pub/test/global/activate/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/activate/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/activate/git_package_test.dart
similarity index 62%
copy from sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/git_package_test.dart
index b8d9b2c2645215fb066761c0f5aa50988deb0542..4426c74c754de45697653e149d027004b14819db 100644
--- a/sdk/lib/_internal/pub/test/global/run/runs_path_script_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/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('activates a package from a Git repo', () {
+ 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"]);
-
- var pub = pubRun(global: true, args: ["foo"]);
- pub.stdout.expect("ok");
- pub.shouldExit();
+ schedulePub(args: ["global", "activate", "-sgit", "../foo.git"],
+ output: '''
+Resolving dependencies...
+Activated foo 1.0.0 from Git repository "../foo.git".''');
});
}

Powered by Google App Engine
This is Rietveld 408576698