Changeset 1091 for trunk/t

Show
Ignore:
Timestamp:
06/18/07 16:20:16 (19 months ago)
Author:
dom
Message:

Add noheaders option, and use that in preference to black content_type
arg. (fixes #220)

Location:
trunk/t
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/15_template.t

    r1040 r1091  
    66use OpenGuides::Template; 
    77use OpenGuides::Test; 
    8 use Test::More tests => 28; 
     8use Test::More tests => 29; 
    99 
    1010my $config = OpenGuides::Test->make_basic_config; 
     
    5151unlike( $output, qr/^Content-Type: text\/html/, 
    5252        "Content-Type header omitted if content_type arg explicitly blank" ); 
     53 
     54$output = OpenGuides::Template->output( 
     55    wiki          => $wiki, 
     56    config        => $config, 
     57    template      => "15_test.tt", 
     58    noheaders      => 1, 
     59    http_response => 500 
     60); 
     61 
     62unlike( $output, qr/^Status: /, 
     63        "Headers omitted if noheaders arg given" ); 
    5364 
    5465$output = OpenGuides::Template->output( 
  • trunk/t/58_navbar_common_locales_categories.t

    r1086 r1091  
    3333        config       => $guide->config, 
    3434        template     => "preferences.tt", 
    35         content_type => '', 
     35        noheaders    => 1, 
    3636        vars         => { 
    3737                          not_editable => 1, 
  • trunk/t/59_preferences.t

    r1085 r1091  
    6060        config       => $config, 
    6161        template     => "preferences.tt", 
    62         content_type => '', 
     62        noheaders    => 1, 
    6363        vars         => { 
    6464                          not_editable => 1,