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("only creates binstubs for the listed executables", () { | 7 integration("only creates binstubs for the listed executables", () { |
7 d.dir("foo", [d.pubspec({ | 8 d.dir("foo", [d.pubspec({ |
8 "name": "foo", | 9 "name": "foo", |
9 "executables": { | 10 "executables": { |
10 "one": "script", | 11 "one": "script", |
11 "two": "script", | 12 "two": "script", |
12 "three": "script" | 13 "three": "script" |
13 } | 14 } |
(...skipping 10 matching lines...) Expand all Loading... |
24 "one", | 25 "one", |
25 "--executable", | 26 "--executable", |
26 "three"], | 27 "three"], |
27 output: contains("Installed executables one and three.")); | 28 output: contains("Installed executables one and three.")); |
28 d.dir( | 29 d.dir( |
29 cachePath, | 30 cachePath, |
30 [ | 31 [ |
31 d.dir( | 32 d.dir( |
32 "bin", | 33 "bin", |
33 [ | 34 [ |
34 d.matcherFile("one", contains("pub global run foo:script")), | 35 d.matcherFile(binStubName("one"), contains("pub global run f
oo:script")), |
35 d.nothing("two"), | 36 d.nothing(binStubName("two")), |
36 d.matcherFile("three", contains("pub global run foo:script")
)])]).validate(); | 37 d.matcherFile( |
| 38 binStubName("three"), |
| 39 contains("pub global run foo:script"))])]).validate(); |
37 }); | 40 }); |
38 } | 41 } |
OLD | NEW |