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

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

more s/$FindBin?::Bin/$t::TestPlagger?::BaseDirURI/g
Added TEST_UNRELIABLE_NETWORK to babelfish.t

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 diag "This test will raise warnings due to XML::OPML internal, but it's harmless";
9 run_eval_expected;
10
11 __END__
12
13 === test file
14 --- input config
15 plugins:
16   - module: Subscription::Odeo
17     config:
18       account: TatsuhikoMiyagawa
19
20   - module: Aggregator::Null
21 --- expected
22 ok $context->subscription->feeds->[0]->url;
23 ok $context->subscription->feeds->[1]->title;
24 ok $context->subscription->feeds->[0]->url;
25 ok $context->subscription->feeds->[1]->title;
Note: See TracBrowser for help on using the browser.