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