| | 29 | |
|---|
| | 30 | === Test custom feed title |
|---|
| | 31 | --- input config |
|---|
| | 32 | plugins: |
|---|
| | 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 |
|---|
| | 44 | is $context->update->feeds->[0]->link, 'http://sportsnavi.yahoo.co.jp/index.html'; |
|---|
| | 45 | ok $context->update->feeds->[0]->count; |
|---|
| | 46 | ok $context->update->feeds->[0]->entries->[0]->title; |
|---|
| | 47 | ok $context->update->feeds->[0]->entries->[0]->link; |
|---|
| | 48 | is $context->update->feeds->[0]->title, 'Sports navi custom!'; |
|---|
| | 49 | |
|---|