]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei.t
lei config --edit: use controlling terminal
[public-inbox.git] / t / lei.t
diff --git a/t/lei.t b/t/lei.t
index c8f475762153c05d58dc77fcdfa935472bc956ab..53fc43fbbb0a2d5db62284612a23fd87fc446543 100644 (file)
--- a/t/lei.t
+++ b/t/lei.t
@@ -100,6 +100,9 @@ my $test_config = sub {
        is($lei_out, "tr00\n", "-c string value passed as-is");
        lei_ok(qw(-c imap.debug=a -c imap.debug=b config --get-all imap.debug));
        is($lei_out, "a\nb\n", '-c and --get-all work together');
+
+       lei_ok([qw(config -e)], { VISUAL => 'cat' });
+       is($lei_out, "[a]\n\tb = c\n", '--edit works');
 };
 
 my $test_completion = sub {