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

Revision 1476 (checked in by drawnboy, 14 years ago)

Filter::ResolveRelativeLink? : Added test

Line 
1 use strict;
2 use t::TestPlagger;
3
4 test_plugin_deps;
5 plan 'no_plan';
6 run_eval_expected;
7
8 __END__
9
10 === Loading Filter::ResolveRelativeLink
11 --- input config
12 plugins:
13   - module: CustomFeed::Debug
14     config:
15       title: foo
16       link: http://www.example.com/show/foo
17       entry:
18         - title: bar
19           body: <a href="/foo/bar">Plagger</a> is a pluggable aggregator
20   - module: Filter::ResolveRelativeLink
21 --- expected
22 is $context->update->feeds->[0]->entries->[0]->body, '<a href="http://www.example.com/foo/bar">Plagger</a> is a pluggable aggregator'
Note: See TracBrowser for help on using the browser.