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:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
8 | 8 |
9 import 'descriptor.dart' as d; | 9 import 'descriptor.dart' as d; |
10 import 'test_pub.dart'; | 10 import 'test_pub.dart'; |
11 | 11 |
12 main() { | 12 main() { |
13 initConfig(); | 13 initConfig(); |
14 | 14 |
15 forBothPubInstallAndUpdate((command) { | 15 forBothPubGetAndUpgrade((command) { |
16 group('requires', () { | 16 group('requires', () { |
17 integration('a pubspec', () { | 17 integration('a pubspec', () { |
18 d.dir(appPath, []).create(); | 18 d.dir(appPath, []).create(); |
19 | 19 |
20 pubCommand(command, | 20 pubCommand(command, |
21 error: new RegExp(r'Could not find a file named "pubspec.yaml" ' | 21 error: new RegExp(r'Could not find a file named "pubspec.yaml" ' |
22 r'in "[^\n]*"\.')); | 22 r'in "[^\n]*"\.')); |
23 }); | 23 }); |
24 | 24 |
25 integration('a pubspec with a "name" key', () { | 25 integration('a pubspec with a "name" key', () { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 "myapp": {"path": "."} | 132 "myapp": {"path": "."} |
133 } | 133 } |
134 }) | 134 }) |
135 ]).create(); | 135 ]).create(); |
136 | 136 |
137 pubCommand(command, error: new RegExp(r'"dev_dependencies.myapp": ' | 137 pubCommand(command, error: new RegExp(r'"dev_dependencies.myapp": ' |
138 r'Package may not list itself as a dependency\.')); | 138 r'Package may not list itself as a dependency\.')); |
139 }); | 139 }); |
140 }); | 140 }); |
141 } | 141 } |
OLD | NEW |