| Index: sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_path_test.dart b/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
|
| similarity index 77%
|
| copy from sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_path_test.dart
|
| copy to sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
|
| index 6dec06bdceb5dfd636b4f1cc5f213ea873742562..9afb49fd78b22cfa5a3b95d99b14e2f9868daea3 100644
|
| --- a/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_path_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
|
| @@ -10,7 +10,7 @@ import '../../test_pub.dart';
|
|
|
| main() {
|
| initConfig();
|
| - integration('activating a hosted package deactivates the path one', () {
|
| + integration('activating a hosted package deactivates the Git one', () {
|
| servePackages([
|
| packageMap("foo", "2.0.0")
|
| ], contents: [
|
| @@ -19,18 +19,18 @@ main() {
|
| ])
|
| ]);
|
|
|
| - d.dir("foo", [
|
| + d.git('foo.git', [
|
| d.libPubspec("foo", "1.0.0"),
|
| d.dir("bin", [
|
| - d.file("foo.dart", "main() => print('path');")
|
| + d.file("foo.dart", "main() => print('git');")
|
| ])
|
| ]).create();
|
|
|
| - schedulePub(args: ["global", "activate", "-spath", "../foo"]);
|
| + schedulePub(args: ["global", "activate", "-sgit", "../foo.git"]);
|
|
|
| var path = canonicalize(p.join(sandboxDir, "foo"));
|
| schedulePub(args: ["global", "activate", "foo"], output: """
|
| - Package foo is currently active at path "$path".
|
| + Package foo is currently active from Git repository "../foo.git".
|
| Downloading foo 2.0.0...
|
| Resolving dependencies...
|
| Activated foo 2.0.0.""");
|
|
|