| Index: sdk/lib/_internal/pub_generated/test/global/binstubs/removes_when_deactivated_test.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/test/global/binstubs/removes_when_deactivated_test.dart b/sdk/lib/_internal/pub_generated/test/global/binstubs/removes_when_deactivated_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0fdb31ba0274e916e9a58fa5b150a9ec6fb8ae0b
|
| --- /dev/null
|
| +++ b/sdk/lib/_internal/pub_generated/test/global/binstubs/removes_when_deactivated_test.dart
|
| @@ -0,0 +1,27 @@
|
| +import 'package:scheduled_test/scheduled_test.dart';
|
| +import '../../descriptor.dart' as d;
|
| +import '../../test_pub.dart';
|
| +main() {
|
| + initConfig();
|
| + integration("removes binstubs when the package is deactivated", () {
|
| + servePackages((builder) {
|
| + builder.serve("foo", "1.0.0", pubspec: {
|
| + "executables": {
|
| + "one": null,
|
| + "two": null
|
| + }
|
| + },
|
| + contents: [
|
| + d.dir(
|
| + "bin",
|
| + [
|
| + d.file("one.dart", "main(args) => print('one');"),
|
| + d.file("two.dart", "main(args) => print('two');")])]);
|
| + });
|
| + schedulePub(args: ["global", "activate", "foo"]);
|
| + schedulePub(args: ["global", "deactivate", "foo"]);
|
| + d.dir(
|
| + cachePath,
|
| + [d.dir("bin", [d.nothing("one"), d.nothing("two")])]).validate();
|
| + });
|
| +}
|
|
|