OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'package:pub/src/entrypoint.dart'; |
| 6 import 'package:pub/src/validator.dart'; |
| 7 import 'package:pub/src/validator/pubspec.dart'; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 |
| 10 import '../descriptor.dart' as d; |
| 11 import '../test_pub.dart'; |
| 12 import 'utils.dart'; |
| 13 |
| 14 main() { |
| 15 integration('should consider a package valid if it has a pubspec', () { |
| 16 d.validPackage.create(); |
| 17 |
| 18 expectNoValidationError((entrypoint) => new PubspecValidator(entrypoint)); |
| 19 }); |
| 20 |
| 21 integration('should consider a package invalid if it has a .gitignored ' |
| 22 'pubspec', () { |
| 23 var repo = d.git(appPath, [d.file(".gitignore", "pubspec.yaml")]); |
| 24 d.validPackage.create(); |
| 25 repo.create(); |
| 26 |
| 27 expectValidationError((entrypoint) => new PubspecValidator(entrypoint)); |
| 28 }); |
| 29 } |
OLD | NEW |