OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import 'package:scheduled_test/scheduled_stream.dart'; |
| 3 import '../../descriptor.dart' as d; |
| 4 import '../../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration('activating a path package installs dependencies', () { |
| 8 servePackages((builder) { |
| 9 builder.serve("bar", "1.0.0", deps: { |
| 10 "baz": "any" |
| 11 }); |
| 12 builder.serve("baz", "2.0.0"); |
| 13 }); |
| 14 d.dir("foo", [d.libPubspec("foo", "0.0.0", deps: { |
| 15 "bar": "any" |
| 16 }), |
| 17 d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).create(
); |
| 18 var pub = startPub(args: ["global", "activate", "-spath", "../foo"]); |
| 19 pub.stdout.expect(consumeThrough("Resolving dependencies...")); |
| 20 pub.stdout.expect(consumeThrough("Downloading bar 1.0.0...")); |
| 21 pub.stdout.expect(consumeThrough("Downloading baz 2.0.0...")); |
| 22 pub.stdout.expect( |
| 23 consumeThrough(startsWith("Activated foo 0.0.0 at path"))); |
| 24 pub.shouldExit(); |
| 25 d.dir( |
| 26 "foo", |
| 27 [ |
| 28 d.matcherFile( |
| 29 "pubspec.lock", |
| 30 allOf( |
| 31 [ |
| 32 contains("bar"), |
| 33 contains("1.0.0"), |
| 34 contains("baz"), |
| 35 contains("2.0.0")]))]).validate(); |
| 36 }); |
| 37 } |
OLD | NEW |