Index: utils/tests/pub/install/path/path_is_file_test.dart |
diff --git a/utils/tests/pub/install/hosted/fail_gracefully_on_url_resolve_test.dart b/utils/tests/pub/install/path/path_is_file_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/path_is_file_test.dart |
index 6a40f08c91de43fb44fe6afe55825bbef36ce3d7..51b302b5e1f9043e08eca60c6646a8c27301c510 100644 |
--- a/utils/tests/pub/install/hosted/fail_gracefully_on_url_resolve_test.dart |
+++ b/utils/tests/pub/install/path/path_is_file_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. |
@@ -9,23 +9,25 @@ import 'dart:io'; |
import '../../test_pub.dart'; |
main() { |
- integration('fails gracefully if the url does not resolve', () { |
+ |
+ integration('path dependency when path is relative', () { |
+ |
+ dir('foo', [ |
+ libDir('foo'), |
+ libPubspec('foo', '0.0.1') |
+ ]).scheduleCreate(); |
+ |
dir(appPath, [ |
pubspec({ |
"name": "myapp", |
"dependencies": { |
- "foo": { |
- "hosted": { |
- "name": "foo", |
- "url": "http://pub.invalid" |
- } |
- } |
- } |
+ "foo": {"path": "../foo/pubspec.yaml"} |
+ } |
}) |
]).scheduleCreate(); |
- |
+ |
schedulePub(args: ['install'], |
- error: new RegExp('Could not resolve URL "http://pub.invalid".'), |
- exitCode: 1); |
+ error: new RegExp("Package \"foo\" doesn't have a pubspec.yaml file."), |
+ exitCode:1); |
}); |
} |