| Index: utils/tests/pub/install/path/nonexistent_dir_test.dart
|
| diff --git a/utils/tests/pub/install/hosted/fail_gracefully_on_url_resolve_test.dart b/utils/tests/pub/install/path/nonexistent_dir_test.dart
|
| similarity index 50%
|
| copy from utils/tests/pub/install/hosted/fail_gracefully_on_url_resolve_test.dart
|
| copy to utils/tests/pub/install/path/nonexistent_dir_test.dart
|
| index 6a40f08c91de43fb44fe6afe55825bbef36ce3d7..fa4d0dd9773a77a082c0efad97cad94683383a40 100644
|
| --- a/utils/tests/pub/install/hosted/fail_gracefully_on_url_resolve_test.dart
|
| +++ b/utils/tests/pub/install/path/nonexistent_dir_test.dart
|
| @@ -1,31 +1,30 @@
|
| -// 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.
|
|
|
| -library pub_tests;
|
| -
|
| import 'dart:io';
|
|
|
| +import '../../../../../pkg/path/lib/path.dart' as path;
|
| +
|
| import '../../test_pub.dart';
|
|
|
| main() {
|
| - integration('fails gracefully if the url does not resolve', () {
|
| + initConfig();
|
| + integration('path dependency to non-existent directory', () {
|
| + var badPath = path.join(sandboxDir, "bad_path");
|
| +
|
| dir(appPath, [
|
| pubspec({
|
| "name": "myapp",
|
| "dependencies": {
|
| - "foo": {
|
| - "hosted": {
|
| - "name": "foo",
|
| - "url": "http://pub.invalid"
|
| - }
|
| - }
|
| - }
|
| + "foo": {"path": badPath}
|
| + }
|
| })
|
| ]).scheduleCreate();
|
|
|
| schedulePub(args: ['install'],
|
| - error: new RegExp('Could not resolve URL "http://pub.invalid".'),
|
| + error:
|
| + new RegExp("Could not find package 'foo' at '$badPath'."),
|
| exitCode: 1);
|
| });
|
| -}
|
| +}
|
|
|