diff options
author | Eric Wong <e@yhbt.net> | 2020-03-29 19:32:31 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-03-30 17:10:52 +0000 |
commit | 99ba1517d9a636d72b014c3d89f176575bdfcc59 (patch) | |
tree | 6ec0df2b1b03009c24d718f5d24801914d9fbbee /t | |
parent | b5ddcb3352ef31aeb03b4c4cbb04af3de34a4c4f (diff) | |
download | public-inbox-99ba1517d9a636d72b014c3d89f176575bdfcc59.tar.gz |
The "-" was never supported by Xapian in the prefix, but it could still be used to make documentation and URLs more readable in certain cases. Fixes: 7909c5f7439777e3 ("altid: warn about non-word prefixes")
Diffstat (limited to 't')
-rw-r--r-- | t/filter_rubylang.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/filter_rubylang.t b/t/filter_rubylang.t index 62b3affe..8215b6f1 100644 --- a/t/filter_rubylang.t +++ b/t/filter_rubylang.t @@ -27,7 +27,12 @@ SKIP: { use_ok 'PublicInbox::Inbox'; my ($git_dir, $for_destroy) = tmpdir(); is(mkdir("$git_dir/public-inbox"), 1, "created public-inbox dir"); - my $altid = [ "serial:ruby-core:file=msgmap.sqlite3" ]; + my $altid = [ + # 'serial:ruby-core:file=msgmap.sqlite3' can be used here + # for documentation purposes, but Xapian ignores everything + # up to and including the '-' + 'serial:core:file=msgmap.sqlite3' + ]; my $ibx = PublicInbox::Inbox->new({ inboxdir => $git_dir, altid => $altid }); $f = PublicInbox::Filter::RubyLang->new(-inbox => $ibx); |