OLD | NEW |
(Empty) | |
| 1 import 'package:path/path.dart' as p; |
| 2 import '../../../lib/src/io.dart'; |
| 3 import '../../descriptor.dart' as d; |
| 4 import '../../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration('activates a package at a local path', () { |
| 8 d.dir( |
| 9 "foo", |
| 10 [ |
| 11 d.libPubspec("foo", "1.0.0"), |
| 12 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).creat
e(); |
| 13 var path = canonicalize(p.join(sandboxDir, "foo")); |
| 14 schedulePub( |
| 15 args: ["global", "activate", "--source", "path", "../foo"], |
| 16 output: 'Activated foo 1.0.0 at path "$path".'); |
| 17 }); |
| 18 } |
OLD | NEW |