| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'package:pub/src/entrypoint.dart'; | |
| 6 import 'package:pub/src/validator.dart'; | |
| 7 import 'package:pub/src/validator/pubspec.dart'; | 5 import 'package:pub/src/validator/pubspec.dart'; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | |
| 9 | 6 |
| 10 import '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
| 11 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
| 12 import 'utils.dart'; | 9 import 'utils.dart'; |
| 13 | 10 |
| 14 main() { | 11 main() { |
| 15 integration('should consider a package valid if it has a pubspec', () { | 12 integration('should consider a package valid if it has a pubspec', () { |
| 16 d.validPackage.create(); | 13 d.validPackage.create(); |
| 17 | 14 |
| 18 expectNoValidationError((entrypoint) => new PubspecValidator(entrypoint)); | 15 expectNoValidationError((entrypoint) => new PubspecValidator(entrypoint)); |
| 19 }); | 16 }); |
| 20 | 17 |
| 21 integration('should consider a package invalid if it has a .gitignored ' | 18 integration('should consider a package invalid if it has a .gitignored ' |
| 22 'pubspec', () { | 19 'pubspec', () { |
| 23 var repo = d.git(appPath, [d.file(".gitignore", "pubspec.yaml")]); | 20 var repo = d.git(appPath, [d.file(".gitignore", "pubspec.yaml")]); |
| 24 d.validPackage.create(); | 21 d.validPackage.create(); |
| 25 repo.create(); | 22 repo.create(); |
| 26 | 23 |
| 27 expectValidationError((entrypoint) => new PubspecValidator(entrypoint)); | 24 expectValidationError((entrypoint) => new PubspecValidator(entrypoint)); |
| 28 }); | 25 }); |
| 29 } | 26 } |
| OLD | NEW |