Index: sdk/lib/_internal/pub_generated/test/serve/invalid_method_test.dart |
diff --git a/sdk/lib/_internal/pub_generated/test/serve/invalid_method_test.dart b/sdk/lib/_internal/pub_generated/test/serve/invalid_method_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ef784e21b77ab14c3e96a190d4c2ed26dfb9f765 |
--- /dev/null |
+++ b/sdk/lib/_internal/pub_generated/test/serve/invalid_method_test.dart |
@@ -0,0 +1,15 @@ |
+library pub_tests; |
+import '../descriptor.dart' as d; |
+import '../test_pub.dart'; |
+import 'utils.dart'; |
+main() { |
+ initConfig(); |
+ integration("responds with a 405 for an invalid method", () { |
+ d.dir( |
+ appPath, |
+ [d.appPubspec(), d.dir("web", [d.file("index.html", "<body>")])]).create(); |
+ pubServe(); |
+ postShould405("index.html"); |
+ endPubServe(); |
+ }); |
+} |