OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
6 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
7 | 7 |
8 main() { | 8 main() { |
9 forBothPubGetAndUpgrade((command) { | 9 forBothPubGetAndUpgrade((command) { |
10 integration("removes a dependency that's removed from the pubspec", () { | 10 integration("removes a dependency that's removed from the pubspec", () { |
11 servePackages((builder) { | 11 servePackages((builder) { |
12 builder.serve("foo", "1.0.0"); | 12 builder.serve("foo", "1.0.0"); |
13 builder.serve("bar", "1.0.0"); | 13 builder.serve("bar", "1.0.0"); |
14 }); | 14 }); |
15 | 15 |
16 d.appDir({"foo": "any", "bar": "any"}).create(); | 16 d.appDir({"foo": "any", "bar": "any"}).create(); |
17 | 17 |
18 pubCommand(command); | 18 pubCommand(command); |
19 | 19 |
20 d.packagesDir({ | 20 d.appPackagesFile({ |
21 "foo": "1.0.0", | 21 "foo": "1.0.0", |
22 "bar": "1.0.0" | 22 "bar": "1.0.0" |
23 }).validate(); | 23 }).validate(); |
24 | 24 |
25 d.appDir({"foo": "any"}).create(); | 25 d.appDir({"foo": "any"}).create(); |
26 | 26 |
27 pubCommand(command); | 27 pubCommand(command); |
28 | 28 |
29 d.packagesDir({ | 29 d.appPackagesFile({ |
30 "foo": "1.0.0", | 30 "foo": "1.0.0" |
31 "bar": null | |
32 }).validate(); | 31 }).validate(); |
33 }); | 32 }); |
34 }); | 33 }); |
35 } | 34 } |
OLD | NEW |