Changeset 23


Ignore:
Timestamp:
Jun 10, 2004, 7:08:14 PM (17 years ago)
Author:
kake
Message:

Move the 'returned only once' test to a place where it's actually testing what it says it does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cgi-wiki/trunk/t/011_recent_changes.t

    r7 r23  
    6161               ["Another Node", "Everyone's Favourite Hobby", "Node1"],
    6262               "recent_changes for last 1 day gets the right results" );
    63 
    64     is( scalar @nodenames, 3,
    65         "...only once per node however many times changed" );
    6663
    6764    is_deeply( \@nodenames,
     
    129126
    130127    #####
    131     ##### Write another bunch of stuff for testing metadata_was
     128    ##### Write to Another Node again for testing metadata_was and the
     129    ##### effect of the presence and absence of include_all_changes
    132130    #####
    133131
     
    142140                       }
    143141                     );
     142
     143    @nodes = $wiki->list_recent_changes( days => 1 );
     144    is( scalar @nodes, 3,
     145        "By default each node returned only once however many times changed" );
     146
    144147    @nodes = $wiki->list_recent_changes(
    145148        last_n_changes => 5,
Note: See TracChangeset for help on using the changeset viewer.