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

Revision 1494 (checked in by miyagawa, 14 years ago)

fixed warnings in Filter::ResolveRelativeLink?

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           link: http://plagger.org/
21   - module: Filter::ResolveRelativeLink
22 --- expected
23 is $context->update->feeds->[0]->entries->[0]->body, '<a href="http://plagger.org/foo/bar">Plagger</a> is a pluggable aggregator'
24
25 === resolve with feed link
26 --- input config
27 plugins:
28   - module: CustomFeed::Debug
29     config:
30       title: foo
31       link: http://www.example.com/show/foo
32       entry:
33         - title: bar
34           body: <a href="/foo/bar">Plagger</a> is a pluggable aggregator
35   - module: Filter::ResolveRelativeLink
36 --- expected
37 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.