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".'''); |
}); |
} |