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 binstubs when the package is deactivated", () { | 7 integration("removes binstubs when the package is deactivated", () { |
7 servePackages((builder) { | 8 servePackages((builder) { |
8 builder.serve("foo", "1.0.0", pubspec: { | 9 builder.serve("foo", "1.0.0", pubspec: { |
9 "executables": { | 10 "executables": { |
10 "one": null, | 11 "one": null, |
11 "two": null | 12 "two": null |
12 } | 13 } |
13 }, | 14 }, |
14 contents: [ | 15 contents: [ |
15 d.dir( | 16 d.dir( |
16 "bin", | 17 "bin", |
17 [ | 18 [ |
18 d.file("one.dart", "main(args) => print('one');"), | 19 d.file("one.dart", "main(args) => print('one');"), |
19 d.file("two.dart", "main(args) => print('two');")])]); | 20 d.file("two.dart", "main(args) => print('two');")])]); |
20 }); | 21 }); |
21 schedulePub(args: ["global", "activate", "foo"]); | 22 schedulePub(args: ["global", "activate", "foo"]); |
22 schedulePub(args: ["global", "deactivate", "foo"]); | 23 schedulePub(args: ["global", "deactivate", "foo"]); |
23 d.dir( | 24 d.dir( |
24 cachePath, | 25 cachePath, |
25 [d.dir("bin", [d.nothing("one"), d.nothing("two")])]).validate(); | 26 [ |
| 27 d.dir( |
| 28 "bin", |
| 29 [d.nothing(binStubName("one")), d.nothing(binStubName("two"))])]
).validate(); |
26 }); | 30 }); |
27 } | 31 } |
OLD | NEW |