Show
Ignore:
Timestamp:
06/12/04 17:15:14 (5 years ago)
Author:
kake
Message:

Fix bugs with URLs and <title> in category/locale index.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/53_show_index.t

    r384 r393  
    33use Config::Tiny; 
    44use OpenGuides; 
    5 use Test::More tests => 4; 
     5use Test::More tests => 6; 
    66 
    77eval { require DBD::SQLite; }; 
     
    99 
    1010SKIP: { 
    11     skip "DBD::SQLite not installed - no database to test with", 4 
     11    skip "DBD::SQLite not installed - no database to test with", 6 
    1212      unless $have_sqlite; 
    1313 
     
    4848    }; 
    4949    is( $@, "", "->show_index doesn't die" ); 
     50    like( $output, qr|wiki.cgi\?Test_Page|, 
     51          "...and includes correct links" ); 
     52    unlike( $output, qr|<title>\s*-|, "...sets <title> correctly" ); 
     53 
    5054    $output = $guide->show_index( 
    5155                                  type          => "category",