root/trunk/plagger/t/plugins/Filter-HatenaDiaryKeywordUnlink/base.t

Revision 1824 (checked in by kentaro, 14 years ago)

created a local branch for Plagger
Filter::HatenaDiaryKeywordUnlink?: now strips links to Hatelabo::AnonimousDiary? keywords

Line 
1 use strict;
2 use t::TestPlagger;
3
4 plan 'no_plan';
5 run_eval_expected;
6
7 __END__
8
9 === Loading Filter::HatenaDiaryKeywordUnlink
10 --- input config
11 plugins:
12   - module: CustomFeed::Debug
13     config:
14       title: foo
15       entry:
16         - title: bar
17           body: <a class="keyword" href="http://d.hatena.ne.jp/keyword/Plagger">Plagger</a> is a pluggable aggregator, which is so to say the duct tape of the <a href="http://anond.hatelabo.jp/keyword/Web" class="keyword">Web</a>
18   - module: Filter::HatenaDiaryKeywordUnlink
19 --- expected
20 is $context->update->feeds->[0]->entries->[0]->body, "Plagger is a pluggable aggregator, which is so to say the duct tape of the Web"
Note: See TracBrowser for help on using the browser.