Ignore:
Timestamp:
Dec 9, 2006, 2:16:47 PM (15 years ago)
Author:
nick
Message:

Include the charset in the feeds, as we do with the pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/23_feed_node_all_versions.t

    r808 r898  
    2222# Which feed types do we test?
    2323my @feed_types = qw( rss atom );
    24 plan tests => 11 * scalar @feed_types;
     24plan tests => 14 * scalar @feed_types;
    2525
    2626
     
    4141                     template_path      => "./templates",
    4242                     home_name          => "Home",
    43                      use_plucene        => 1
     43                     use_plucene        => 1,
     44                     http_charset       => "UTF-8"
    4445                   }
    4546    );
     
    144145    my @wombats = $output =~ /(<title>Wombats)/g;
    145146    is( scalar @wombats, 3, "All 3 wombat versions found" );
     147
     148    # Check the content type and charset
     149    like( $output, qr/Content-Type: /, "Has content type" );
     150    like( $output, qr/$feed_type/, "Which is the right one" );
     151    like( $output, qr/charset=UTF-8/, "And a charset" );
    146152}
Note: See TracChangeset for help on using the changeset viewer.