Ignore:
Timestamp:
Mar 17, 2007, 3:05:27 PM (15 years ago)
Author:
kake
Message:

Add config option to omit recent changes from home page (ticket #187).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/51_display_node.t

    r785 r941  
    3838    is( $@, "", "->display_node doesn't die" );
    3939
    40     like( $output, qr{\<a.*?\Qhref="alternate.cgi?id=Test_Page;action=edit">Edit this page</a>\E}, "...and edit link is redirected to source URL" );
     40    like( $output, qr{\<a.*?\Qhref="alternate.cgi?id=Test_Page;action=edit"\E>Edit\s+this\s+page</a>}, "...and edit link is redirected to source URL" );
    4141    $config->home_name( "My Home Page" );
    4242    $output = $guide->display_node( return_output => 1 );
    43     like( $output, qr/My Home Page/, "...and defaults to the home node, and takes notice of what we want to call it" );
    44     like( $output, qr{\Q<a href="wiki.cgi?action=edit;id=My_Home_Page">Edit this page</a>\E}, "...and home page has an edit link" );
     43    like( $output, qr/My\s+Home\s+Page/, "...and defaults to the home node, and takes notice of what we want to call it" );
     44    like( $output, qr{\Q<a href="wiki.cgi?action=edit;id=My_Home_Page"\E>Edit\s+this\s+page</a>}, "...and home page has an edit link" );
    4545    my %tt_vars = $guide->display_node( return_tt_vars => 1 );
    4646    ok( defined $tt_vars{recent_changes}, "...and recent_changes is set for the home node even if we have changed its name" );
Note: See TracChangeset for help on using the changeset viewer.