Index: sdk/lib/_internal/pub_generated/test/get/git/require_pubspec_test.dart |
diff --git a/sdk/lib/_internal/pub_generated/test/get/git/require_pubspec_test.dart b/sdk/lib/_internal/pub_generated/test/get/git/require_pubspec_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..774d370661e4e3cb3960ac8d9a6a98de59a211d4 |
--- /dev/null |
+++ b/sdk/lib/_internal/pub_generated/test/get/git/require_pubspec_test.dart |
@@ -0,0 +1,18 @@ |
+library pub_tests; |
+import '../../descriptor.dart' as d; |
+import '../../test_pub.dart'; |
+main() { |
+ initConfig(); |
+ integration('requires the dependency to have a pubspec', () { |
+ ensureGit(); |
+ d.git('foo.git', [d.libDir('foo')]).create(); |
+ d.appDir({ |
+ "foo": { |
+ "git": "../foo.git" |
+ } |
+ }).create(); |
+ pubGet( |
+ error: new RegExp( |
+ r'Could not find a file named "pubspec\.yaml" ' r'in "[^\n]*"\.')); |
+ }); |
+} |