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 library pub_tests; | 5 library pub_tests; |
6 | 6 |
7 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 initConfig(); | |
12 integration('doesn\'t require the repository name to match the name in the ' | 11 integration('doesn\'t require the repository name to match the name in the ' |
13 'pubspec', () { | 12 'pubspec', () { |
14 ensureGit(); | 13 ensureGit(); |
15 | 14 |
16 d.git('foo.git', [ | 15 d.git('foo.git', [ |
17 d.libDir('weirdname'), | 16 d.libDir('weirdname'), |
18 d.libPubspec('weirdname', '1.0.0') | 17 d.libPubspec('weirdname', '1.0.0') |
19 ]).create(); | 18 ]).create(); |
20 | 19 |
21 d.dir(appPath, [ | 20 d.dir(appPath, [ |
22 d.appPubspec({ | 21 d.appPubspec({ |
23 "weirdname": {"git": "../foo.git"} | 22 "weirdname": {"git": "../foo.git"} |
24 }) | 23 }) |
25 ]).create(); | 24 ]).create(); |
26 | 25 |
27 pubGet(); | 26 pubGet(); |
28 | 27 |
29 d.dir(packagesPath, [ | 28 d.dir(packagesPath, [ |
30 d.dir('weirdname', [ | 29 d.dir('weirdname', [ |
31 d.file('weirdname.dart', 'main() => "weirdname";') | 30 d.file('weirdname.dart', 'main() => "weirdname";') |
32 ]) | 31 ]) |
33 ]).validate(); | 32 ]).validate(); |
34 }); | 33 }); |
35 } | 34 } |
OLD | NEW |