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

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

rewrite OPML parser using XML::LibXML::SAX. YAY! Fixes #383

Line 
1 use strict;
2 use t::TestPlagger;
3
4 test_requires_network 'www.odeo.com:80';
5
6 test_plugin_deps;
7 plan tests => 4;
8 run_eval_expected;
9
10 __END__
11
12 === test file
13 --- input config
14 plugins:
15   - module: Subscription::Odeo
16     config:
17       account: TatsuhikoMiyagawa
18
19   - module: Aggregator::Null
20 --- expected
21 ok $context->subscription->feeds->[0]->url;
22 ok $context->subscription->feeds->[1]->title;
23 ok $context->subscription->feeds->[0]->url;
24 ok $context->subscription->feeds->[1]->title;
Note: See TracBrowser for help on using the browser.