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('checks out a package from Git twice', () { | 9 integration('checks out a package from Git twice', () { |
12 ensureGit(); | 10 ensureGit(); |
13 | 11 |
14 d.git('foo.git', [ | 12 d.git('foo.git', [ |
15 d.libDir('foo'), | 13 d.libDir('foo'), |
16 d.libPubspec('foo', '1.0.0') | 14 d.libPubspec('foo', '1.0.0') |
(...skipping 14 matching lines...) Expand all Loading... |
31 d.dir('foo', [ | 29 d.dir('foo', [ |
32 d.file('foo.dart', 'main() => "foo";') | 30 d.file('foo.dart', 'main() => "foo";') |
33 ]) | 31 ]) |
34 ]).validate(); | 32 ]).validate(); |
35 | 33 |
36 // Verify that nothing breaks if we get a Git revision that's already | 34 // Verify that nothing breaks if we get a Git revision that's already |
37 // in the cache. | 35 // in the cache. |
38 pubUpgrade(); | 36 pubUpgrade(); |
39 }); | 37 }); |
40 } | 38 } |
OLD | NEW |