about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-10 03:02:01 +0000
committerEric Wong <e@80x24.org>2014-04-10 03:02:01 +0000
commit6e1589df66857f4dd75e08e8444da2a5db8cd098 (patch)
tree7cf0e8532f646c36aff6204846ad3f4ba90f6f59 /t
parent98f93b6a62b43b376e006b2c09c440d16edc12d9 (diff)
downloadpublic-inbox-6e1589df66857f4dd75e08e8444da2a5db8cd098.tar.gz
This is essential when telling people to use something like:
	curl $URL | git am
Diffstat (limited to 't')
-rw-r--r--t/cgi.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/cgi.t b/t/cgi.t
index 3ba74f30..a19f2cf1 100644
--- a/t/cgi.t
+++ b/t/cgi.t
@@ -122,6 +122,16 @@ EOF
         # more checks in t/feed.t
 }
 
+
+{
+        local $ENV{HOME} = $home;
+        my $res = cgi_run("/test/m/blahblah\@example.com.txt");
+        like($res->{body}, qr/Message-Id: <blahblah\@example\.com>/,
+                "mid.txt hit");
+        $res = cgi_run("/test/m/blahblah\@example.con.txt");
+        like($res->{head}, qr/Status: 404 Not Found/, "mid.txt miss");
+}
+
 done_testing();
 
 sub run_with_env {