| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | |
| 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. | |
| 4 | |
| 5 library pub_tests; | |
| 6 | |
| 7 import '../descriptor.dart' as d; | |
| 8 import '../test_pub.dart'; | |
| 9 import 'utils.dart'; | |
| 10 | |
| 11 main() { | |
| 12 initConfig(); | |
| 13 integration("gets first if a dependency is not in the lock file", () { | |
| 14 d.dir("foo", [d.libPubspec("foo", "0.0.1"), d.libDir("foo")]).create(); | |
| 15 | |
| 16 // Create a lock file without "foo". | |
| 17 d.dir(appPath, [d.appPubspec()]).create(); | |
| 18 pubGet(); | |
| 19 | |
| 20 // Add it to the pubspec. | |
| 21 d.dir(appPath, [d.appPubspec({ | |
| 22 "foo": { | |
| 23 "path": "../foo" | |
| 24 } | |
| 25 })]).create(); | |
| 26 | |
| 27 pubServe(shouldGetFirst: true); | |
| 28 requestShouldSucceed("packages/foo/foo.dart", 'main() => "foo";'); | |
| 29 endPubServe(); | |
| 30 }); | |
| 31 } | |
| OLD | NEW |