about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 2b825768..bfe17d0a 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -276,4 +276,16 @@ EOF
         $im->done;
 }
 
+my $tmp = {
+        inboxdir => "$inboxdir/non-existent/subdir",
+        name => 'nope',
+        version => 2,
+        -primary_address => 'test@example.com',
+};
+eval {
+        my $nope = PublicInbox::V2Writable->new($tmp);
+        $nope->add($mime);
+};
+ok($@, 'V2Writable fails on non-existent dir');
+
 done_testing();