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 git package', () { |
| 6 ensureGit(); |
| 7 d.git( |
| 8 'foo.git', |
| 9 [ |
| 10 d.libPubspec("foo", "1.0.0"), |
| 11 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).creat
e(); |
| 12 schedulePub(args: ["global", "activate", "-sgit", "../foo.git"]); |
| 13 var pub = pubRun(global: true, args: ["foo"]); |
| 14 pub.stdout.expect("ok"); |
| 15 pub.shouldExit(); |
| 16 }); |
| 17 } |
OLD | NEW |