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("does not overwrite an existing binstub", () { | 8 integration("does not overwrite an existing binstub", () { |
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 pub.stderr.expect("Executable collide2 was already installed from foo."); | 31 pub.stderr.expect("Executable collide2 was already installed from foo."); |
31 pub.stderr.expect( | 32 pub.stderr.expect( |
32 "Deactivate the other package(s) or activate bar using " "--overwrite.")
; | 33 "Deactivate the other package(s) or activate bar using " "--overwrite.")
; |
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("foo:foo")), | 43 d.matcherFile(binStubName("collide1"), contains("foo:foo")), |
43 d.matcherFile("collide2", contains("foo:foo"))])]).validate(
); | 44 d.matcherFile(binStubName("collide2"), contains("foo:foo"))]
)]).validate(); |
44 }); | 45 }); |
45 } | 46 } |
OLD | NEW |