X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fwatch_filter_rubylang.t;fp=t%2Fwatch_filter_rubylang.t;h=9c70b4eae710990f1eebddd5301434c3eb5213bb;hb=0d38f65c490466837ae091afa7a7b6f59d04ce7c;hp=6513f30b0441c42d0fa63366d79b4973e98e9260;hpb=416d1c3f6d5e5a857760ffc1b679e86a070bdbd4;p=public-inbox.git diff --git a/t/watch_filter_rubylang.t b/t/watch_filter_rubylang.t index 6513f30b..9c70b4ea 100644 --- a/t/watch_filter_rubylang.t +++ b/t/watch_filter_rubylang.t @@ -72,11 +72,11 @@ $cfgpfx.filter=PublicInbox::Filter::RubyLang $cfgpfx.altid=serial:alerts:file=msgmap.sqlite3 publicinboxwatch.watchspam=maildir:$spamdir EOF - my $config = PublicInbox::Config->new(\$orig); - my $ibx = $config->lookup_name($v); + my $cfg = PublicInbox::Config->new(\$orig); + my $ibx = $cfg->lookup_name($v); ok($ibx, 'found inbox by name'); - my $w = PublicInbox::Watch->new($config); + my $w = PublicInbox::Watch->new($cfg); for my $i (1..2) { $w->scan('full'); } @@ -101,8 +101,8 @@ EOF } $w->scan('full'); - $config = PublicInbox::Config->new(\$orig); - $ibx = $config->lookup_name($v); + $cfg = PublicInbox::Config->new(\$orig); + $ibx = $cfg->lookup_name($v); is($ibx->search->reopen->mset('b:spam')->size, 0, 'spam removed'); is_deeply([], \@warn, 'no warnings');