OLD | NEW |
1 import 'package:scheduled_test/scheduled_stream.dart'; | 1 import 'package:scheduled_test/scheduled_stream.dart'; |
2 import 'package:scheduled_test/scheduled_test.dart'; | 2 import 'package:scheduled_test/scheduled_test.dart'; |
3 import '../../descriptor.dart' as d; | 3 import '../../descriptor.dart' as d; |
4 import '../../test_pub.dart'; | 4 import '../../test_pub.dart'; |
| 5 import 'utils.dart'; |
5 main() { | 6 main() { |
6 initConfig(); | 7 initConfig(); |
7 integration("overwrites an existing binstub if --overwrite is passed", () { | 8 integration("overwrites an existing binstub if --overwrite is passed", () { |
8 d.dir("foo", [d.pubspec({ | 9 d.dir("foo", [d.pubspec({ |
9 "name": "foo", | 10 "name": "foo", |
10 "executables": { | 11 "executables": { |
11 "foo": "foo", | 12 "foo": "foo", |
12 "collide1": "foo", | 13 "collide1": "foo", |
13 "collide2": "foo" | 14 "collide2": "foo" |
14 } | 15 } |
(...skipping 15 matching lines...) Expand all Loading... |
30 consumeThrough("Installed executables bar, collide1 and collide2.")); | 31 consumeThrough("Installed executables bar, collide1 and collide2.")); |
31 pub.stderr.expect("Replaced collide1 previously installed from foo."); | 32 pub.stderr.expect("Replaced collide1 previously installed from foo."); |
32 pub.stderr.expect("Replaced collide2 previously installed from foo."); | 33 pub.stderr.expect("Replaced collide2 previously installed from foo."); |
33 pub.shouldExit(); | 34 pub.shouldExit(); |
34 d.dir( | 35 d.dir( |
35 cachePath, | 36 cachePath, |
36 [ | 37 [ |
37 d.dir( | 38 d.dir( |
38 "bin", | 39 "bin", |
39 [ | 40 [ |
40 d.matcherFile("foo", contains("foo:foo")), | 41 d.matcherFile(binStubName("foo"), contains("foo:foo")), |
41 d.matcherFile("bar", contains("bar:bar")), | 42 d.matcherFile(binStubName("bar"), contains("bar:bar")), |
42 d.matcherFile("collide1", contains("bar:bar")), | 43 d.matcherFile(binStubName("collide1"), contains("bar:bar")), |
43 d.matcherFile("collide2", contains("bar:bar"))])]).validate(
); | 44 d.matcherFile(binStubName("collide2"), contains("bar:bar"))]
)]).validate(); |
44 }); | 45 }); |
45 } | 46 } |
OLD | NEW |