Changeset 1895

Show
Ignore:
Timestamp:
11/30/06 02:48:05
Author:
typester
Message:

CustomFeed?::Simple: added custom feed title test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/t/plugins/CustomFeed-Simple/test.t

    r1427 r1895  
    2727ok $context->update->feeds->[0]->entries->[0]->title; 
    2828ok $context->update->feeds->[0]->entries->[0]->link; 
     29 
     30=== Test custom feed title 
     31--- input config 
     32plugins: 
     33  - module: Subscription::Config 
     34    config: 
     35      feed: 
     36        - url: http://sportsnavi.yahoo.co.jp/index.html 
     37          title: Sports navi custom! 
     38          meta: 
     39            follow_link: /headlines/ 
     40         
     41  - module: CustomFeed::Simple 
     42 
     43--- expected 
     44is $context->update->feeds->[0]->link, 'http://sportsnavi.yahoo.co.jp/index.html'; 
     45ok $context->update->feeds->[0]->count; 
     46ok $context->update->feeds->[0]->entries->[0]->title; 
     47ok $context->update->feeds->[0]->entries->[0]->link; 
     48is $context->update->feeds->[0]->title, 'Sports navi custom!'; 
     49