Changeset 1091 for trunk/t/15_template.t

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

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

Files:
1 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(