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('deactivates an active path package', () { |
| 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 schedulePub(args: ["global", "activate", "--source", "path", "../foo"]); |
| 14 var path = canonicalize(p.join(sandboxDir, "foo")); |
| 15 schedulePub( |
| 16 args: ["global", "deactivate", "foo"], |
| 17 output: 'Deactivated package foo 1.0.0 at path "$path".'); |
| 18 }); |
| 19 } |
OLD | NEW |