From 99ba1517d9a636d72b014c3d89f176575bdfcc59 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 29 Mar 2020 19:32:31 +0000 Subject: t/filter_rubylang.t: avoid warning for non-word prefix 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") --- t/filter_rubylang.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 't') 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); -- cgit v1.2.3-24-ge0c7