OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 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 | 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 library pub_tests; | |
6 | |
7 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
9 import 'utils.dart'; | 7 import 'utils.dart'; |
10 | 8 |
11 main() { | 9 main() { |
12 integration("gets first if a git dependency's url doesn't match the one in " | 10 integration("gets first if a git dependency's url doesn't match the one in " |
13 "the lock file", () { | 11 "the lock file", () { |
14 d.git("foo-before.git", [ | 12 d.git("foo-before.git", [ |
15 d.libPubspec("foo", "1.0.0"), | 13 d.libPubspec("foo", "1.0.0"), |
16 d.libDir("foo", "before") | 14 d.libDir("foo", "before") |
(...skipping 14 matching lines...) Expand all Loading... |
31 d.appDir({ | 29 d.appDir({ |
32 "foo": {"git": "../foo-after.git"} | 30 "foo": {"git": "../foo-after.git"} |
33 }).create(); | 31 }).create(); |
34 | 32 |
35 pubGet(); | 33 pubGet(); |
36 pubServe(); | 34 pubServe(); |
37 requestShouldSucceed("packages/foo/foo.dart", 'main() => "after";'); | 35 requestShouldSucceed("packages/foo/foo.dart", 'main() => "after";'); |
38 endPubServe(); | 36 endPubServe(); |
39 }); | 37 }); |
40 } | 38 } |
OLD | NEW |