]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/filter_rubylang.t: avoid warning for non-word prefix
authorEric Wong <e@yhbt.net>
Sun, 29 Mar 2020 19:32:31 +0000 (19:32 +0000)
committerEric Wong <e@yhbt.net>
Mon, 30 Mar 2020 17:10:52 +0000 (17:10 +0000)
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

index 62b3affecc899fc0edbaf20f825d0af1dcd1a322..8215b6f109e8323728cfa2f897ed5dd35f39f477 100644 (file)
@@ -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);