Permalink
Browse files

Some minor fixes to the november parser and its test case.

  • Loading branch information...
1 parent 829d34b commit db8419542bc75a47eb481bc422d2a994ad50a190 @Infinoid committed Nov 13, 2009
Showing with 6 additions and 8 deletions.
  1. +2 −1 modules/local/novemberlog.pm
  2. +4 −7 t/novemberlog.t
@@ -30,10 +30,11 @@ config and simply add the freenode channel to the list of targets.)
=cut
-my $url = 'http://github.com/viklund/november-wiki';
+my $url = 'http://github.com/viklund/november';
sub init {
modules::local::githubparser->try_link($url, ['freenode', '#november-wiki']);
+ modules::local::githubparser->try_link($url, ['freenode', '#perl6']);
}
1;
View
@@ -7,9 +7,6 @@ use Cwd;
use lib getcwd();
use t::util;
-# note: the order these are loaded in determine the order of the target channels,
-# and thus, the tests below depend on this ordering.
-load_plugin("autofeed");
load_plugin("novemberlog");
my $tests;
@@ -79,8 +76,8 @@ $feed = XML::Atom::Feed->new(\$xml);
call_func('process_feed', $feed);
$output = [output()];
is(scalar @$output, 6, "6 lines of output");
-is($$output[0]{net} , 'magnet' , "line to magnet/#parrot");
-is($$output[0]{chan}, '#parrot' , "line to magnet/#parrot");
+is($$output[0]{net} , 'freenode', "line to freenode/#november-wiki");
+is($$output[0]{chan}, '#november-wiki' , "line to freenode/#november-wiki");
is($$output[1]{net} , 'freenode', "line to freenode/#perl6");
is($$output[1]{chan}, '#perl6' , "line to freenode/#perl6");
BEGIN { $tests += 5 };
@@ -118,8 +115,8 @@ $feed = XML::Atom::Feed->new(\$xml);
call_func('process_feed', $feed);
$output = [output()];
is(scalar @$output, 12, "12 lines of output");
-is($$output[0]{net} , 'magnet' , "line to magnet/#parrot");
-is($$output[0]{chan}, '#parrot' , "line to magnet/#parrot");
+is($$output[0]{net} , 'freenode', "line to freenode/#november-wiki");
+is($$output[0]{chan}, '#november-wiki' , "line to freenode/#november-wiki");
is($$output[1]{net} , 'freenode', "line to freenode/#perl6");
is($$output[1]{chan}, '#perl6' , "line to freenode/#perl6");
# The module sorts by <updated> time, but the time is the same for these two commits.

0 comments on commit db84195

Please sign in to comment.