Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Side by Side Diff: test/validator/pubspec_test.dart

Issue 1310253007: Make pub lish validation gitignore-aware. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: analysis hints Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698