OLD | NEW |
1 import 'package:scheduled_test/scheduled_test.dart'; | 1 import 'package:scheduled_test/scheduled_test.dart'; |
2 import '../../descriptor.dart' as d; | 2 import '../../descriptor.dart' as d; |
3 import '../../test_pub.dart'; | 3 import '../../test_pub.dart'; |
| 4 import 'utils.dart'; |
4 main() { | 5 main() { |
5 initConfig(); | 6 initConfig(); |
6 integration("removes all binstubs for package", () { | 7 integration("removes all binstubs for package", () { |
7 d.dir("foo", [d.pubspec({ | 8 d.dir("foo", [d.pubspec({ |
8 "name": "foo", | 9 "name": "foo", |
9 "executables": { | 10 "executables": { |
10 "foo": null | 11 "foo": null |
11 } | 12 } |
12 }), | 13 }), |
13 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).create(
); | 14 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).create(
); |
14 schedulePub(args: ["global", "activate", "--source", "path", "../foo"]); | 15 schedulePub(args: ["global", "activate", "--source", "path", "../foo"]); |
15 d.dir("foo", [d.pubspec({ | 16 d.dir("foo", [d.pubspec({ |
16 "name": "foo" | 17 "name": "foo" |
17 })]).create(); | 18 })]).create(); |
18 schedulePub(args: ["global", "deactivate", "foo"]); | 19 schedulePub(args: ["global", "deactivate", "foo"]); |
19 d.dir(cachePath, [d.dir("bin", [d.nothing("foo")])]).validate(); | 20 d.dir( |
| 21 cachePath, |
| 22 [d.dir("bin", [d.nothing(binStubName("foo"))])]).validate(); |
20 }); | 23 }); |
21 } | 24 } |
OLD | NEW |