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 'package:pub/src/exit_codes.dart' as exit_codes; | 7 import 'package:pub/src/exit_codes.dart' as exit_codes; |
8 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
9 | 9 |
10 import '../../descriptor.dart' as d; | 10 import '../../descriptor.dart' as d; |
11 import '../../test_pub.dart'; | 11 import '../../test_pub.dart'; |
12 | 12 |
13 main() { | 13 main() { |
14 initConfig(); | |
15 integration("upgrades Git packages to an incompatible pubspec", () { | 14 integration("upgrades Git packages to an incompatible pubspec", () { |
16 ensureGit(); | 15 ensureGit(); |
17 | 16 |
18 d.git('foo.git', [ | 17 d.git('foo.git', [ |
19 d.libDir('foo'), | 18 d.libDir('foo'), |
20 d.libPubspec('foo', '1.0.0') | 19 d.libPubspec('foo', '1.0.0') |
21 ]).create(); | 20 ]).create(); |
22 | 21 |
23 d.appDir({"foo": {"git": "../foo.git"}}).create(); | 22 d.appDir({"foo": {"git": "../foo.git"}}).create(); |
24 | 23 |
(...skipping 13 matching lines...) Expand all Loading... |
38 pubUpgrade(error: contains('"name" field doesn\'t match expected name ' | 37 pubUpgrade(error: contains('"name" field doesn\'t match expected name ' |
39 '"foo".'), exitCode: exit_codes.DATA); | 38 '"foo".'), exitCode: exit_codes.DATA); |
40 | 39 |
41 d.dir(packagesPath, [ | 40 d.dir(packagesPath, [ |
42 d.dir('foo', [ | 41 d.dir('foo', [ |
43 d.file('foo.dart', 'main() => "foo";') | 42 d.file('foo.dart', 'main() => "foo";') |
44 ]) | 43 ]) |
45 ]).validate(); | 44 ]).validate(); |
46 }); | 45 }); |
47 } | 46 } |
OLD | NEW |