OLD | NEW |
---|---|
(Empty) | |
1 import '../../descriptor.dart' as d; | |
2 import '../../test_pub.dart'; | |
3 main() { | |
4 initConfig(); | |
5 integration('runs a script in a path package', () { | |
6 d.dir( | |
7 "foo", | |
8 [ | |
9 d.libPubspec("foo", "1.0.0"), | |
10 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).creat e(); | |
11 schedulePub(args: ["global", "activate", "--source", "path", "../foo"]); | |
12 var pub = pubRun(global: true, args: ["foo"]); | |
13 pub.stdout.expect("ok"); | |
14 pub.shouldExit(); | |
15 }); | |
16 } | |
OLD | NEW |