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