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 integration('doesn\'t require the repository name to match the name in the ' | 9 integration('doesn\'t require the repository name to match the name in the ' |
10 'pubspec', () { | 10 'pubspec', () { |
11 ensureGit(); | 11 ensureGit(); |
12 | 12 |
13 d.git('foo.git', [ | 13 d.git('foo.git', [ |
14 d.libDir('weirdname'), | 14 d.libDir('weirdname'), |
15 d.libPubspec('weirdname', '1.0.0') | 15 d.libPubspec('weirdname', '1.0.0') |
16 ]).create(); | 16 ]).create(); |
17 | 17 |
18 d.dir(appPath, [ | 18 d.dir(appPath, [ |
19 d.appPubspec({ | 19 d.appPubspec({ |
20 "weirdname": {"git": "../foo.git"} | 20 "weirdname": {"git": "../foo.git"} |
21 }) | 21 }) |
22 ]).create(); | 22 ]).create(); |
23 | 23 |
24 pubGet(); | 24 // TODO(rnystrom): Remove "--packages-dir" and validate using the |
| 25 // ".packages" file instead of looking in the "packages" directory. |
| 26 pubGet(args: ["--packages-dir"]); |
25 | 27 |
26 d.dir(packagesPath, [ | 28 d.dir(packagesPath, [ |
27 d.dir('weirdname', [ | 29 d.dir('weirdname', [ |
28 d.file('weirdname.dart', 'main() => "weirdname";') | 30 d.file('weirdname.dart', 'main() => "weirdname";') |
29 ]) | 31 ]) |
30 ]).validate(); | 32 ]).validate(); |
31 }); | 33 }); |
32 } | 34 } |
OLD | NEW |