Chromium Code Reviews| Index: utils/tests/pub/validator_test.dart |
| diff --git a/utils/tests/pub/validator_test.dart b/utils/tests/pub/validator_test.dart |
| index 9f0a3665a5b0312a048414d005ffd961669c647f..6f0d5be422c7099a8c3507bf96dbb37b51f1afd7 100644 |
| --- a/utils/tests/pub/validator_test.dart |
| +++ b/utils/tests/pub/validator_test.dart |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| @@ -316,6 +316,16 @@ main() { |
| run(); |
| }); |
| + test('has a dependency with a path source', () { |
| + dir(appPath, [ |
| + libPubspec("test_pkg", "1.0.0", [ |
| + {'path': '/foo/bar'} |
| + ]) |
| + ]).scheduleCreate(); |
| + expectValidationError(dependency); |
|
Bob Nystrom
2013/01/17 19:15:10
Great test.
|
| + run(); |
| + }); |
| + |
| group('has a dependency with a non-hosted source', () { |
| group('where a hosted version of that dependency exists', () { |
| test("and should suggest the hosted package's primary version", () { |