root/trunk/plagger/t/plugins/Subscription-OPML/subscription.t

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

added diag for OPML warnings

Line 
1 use strict;
2 use t::TestPlagger;
3
4 test_plugin_deps;
5 plan tests => 3;
6
7 diag "This test will raise warnings due to XML::OPML internal, but it's harmless";
8 run_eval_expected;
9
10 __END__
11
12 === test file
13 --- input config
14 plugins:
15   - module: Subscription::OPML
16     config:
17       url: file://$t::TestPlagger::BaseDirURI/t/samples/opml.xml
18   - module: Aggregator::Null
19 --- expected
20 is $context->subscription->feeds->[0]->url, "http://blog.bulknews.net/mt/index.rdf";
21 is $context->subscription->feeds->[0]->link, "http://blog.bulknews.net/mt/";
22 is $context->subscription->feeds->[0]->title, "blog.bulknews.net";
Note: See TracBrowser for help on using the browser.