about summary refs log tree commit homepage
path: root/t/lei-externals.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-10 18:57:58 -0100
committerEric Wong <e@80x24.org>2021-02-11 19:15:05 +0000
commitb503d87a23c90fc0f705a79bce34944e7e20b28b (patch)
tree73077711675b7b844a031acd2537a585addfac50 /t/lei-externals.t
parentf310a5054fb8e215885f0b48afac44ff32ca1d56 (diff)
downloadpublic-inbox-b503d87a23c90fc0f705a79bce34944e7e20b28b.tar.gz
This greatly improves the usability of d:, dt:, and rt: search
prefixes for users already familiar git's "approxidate" feature.

That is, users familiar with the --(since|after|until|before)=
options in git-log(1) and similar commands will be able to use
those dates in the WWW UI.
Diffstat (limited to 't/lei-externals.t')
-rw-r--r--t/lei-externals.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lei-externals.t b/t/lei-externals.t
index 9fc8bae9..f61b7e52 100644
--- a/t/lei-externals.t
+++ b/t/lei-externals.t
@@ -151,7 +151,7 @@ SKIP: {
         {
                 open my $fh, '+>', undef or BAIL_OUT $!;
                 $fh->autoflush(1);
-                print $fh 's:use' or BAIL_OUT $!;
+                print $fh 's:use d:..5.days.from.now' or BAIL_OUT $!;
                 seek($fh, 0, SEEK_SET) or BAIL_OUT $!;
                 ok($lei->([qw(q -q --stdin)], undef, { %$lei_opt, 0 => $fh }),
                                 '--stdin on regular file works');