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