Show
Ignore:
Timestamp:
01/22/08 16:38:24 (11 months ago)
Author:
earle
Message:

Allow wiki links in change summaries. Closes #115.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/45_home_recent_changes.t

    r956 r1141  
    1111} 
    1212 
    13 plan tests => 13; 
     13plan tests => 15; 
    1414 
    1515my ( $config, $guide, $wiki ); 
     
    6060like( $output, qr/Edit this page/, "...edit this page link is there too" ); 
    6161 
     62OpenGuides::Test->write_data( 
     63                              guide    => $guide, 
     64                              node     => "Red Lion", 
     65                              content  => "A nice pub.", 
     66                              username => "Earle", 
     67                              comment  => "I also edited it. For fun, here are two links: [[A Page]], and the same link [[A Page|again]].", 
     68                            ); 
     69 
     70# Reload page. 
     71$output = $guide->display_node( 
     72                                   id            => $config->home_name, 
     73                                   return_output => 1, 
     74                                 ); 
     75 
     76like( $output, qr{<a href="\?A Page">A Page</a>}, "...simple wiki links appear in Recent Changes" ); 
     77like( $output, qr{<a href="\?A Page">again</a>},  "...titled wiki links appear in Recent Changes" ); 
     78 
     79 
    6280# And that they don't show up if we don't want them.  Turn off the navbar 
    6381# too, since we want to make sure the edit page link shows up regardless (it 
     
    7896unlike( $output, qr/Ten most.*recent changes/, "...heading not shown either" ); 
    7997like( $output, qr/Edit this page/, "...edit this page link is there though" ); 
     98