Changeset 380 for wiki-toolkit-plugin-categoriser/trunk/t/categoriser.t
- Timestamp:
- 03/06/07 11:00:35 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit-plugin-categoriser/trunk/t/categoriser.t
r261 r380 4 4 5 5 my $iterator = Wiki::Toolkit::TestLib->new_wiki_maker; 6 plan tests => ( 1 + $iterator->number * 6);6 plan tests => ( 1 + $iterator->number * 7 ); 7 7 8 8 use_ok( "Wiki::Toolkit::Plugin::Categoriser" ); … … 42 42 is_deeply( [ sort @categories ], [ "Pub Food", "Pubs" ], 43 43 "...->categories returns all categories" ); 44 45 # Make sure we only look at current category data. 46 my %node_data = $wiki->retrieve_node( "Calthorpe Arms" ); 47 $wiki->write_node( "Calthorpe Arms", 48 "Oh noes, they stopped doing food!", 49 $node_data{checksum}, 50 { category => [ "Pubs" ] } ) 51 or die "Can't write node"; 52 @categories = $categoriser->categories( node => "Calthorpe Arms" ); 53 is_deeply( \@categories, [ "Pubs" ], 54 "->categories ignores out-of-date data" ); 44 55 }
