Ignore:
Timestamp:
Jun 14, 2006, 6:43:03 PM (15 years ago)
Author:
nick
Message:

Check to ensure the feed type turns up in the feed (should spot when we invert atom and rss, for example)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/22_feed_recent_changes.t

    r796 r808  
    2222# Which feed types do we test?
    2323my @feed_types = qw( rss atom );
    24 plan tests => 7 * scalar @feed_types;
     24plan tests => 8 * scalar @feed_types;
    2525
    2626
     
    5151                                      config => $config );
    5252
    53     my $rss = eval { $feed->make_feed(feed_type => $feed_type, feed_listing => 'recent_changes'); };
     53    my $feed_output = eval { $feed->make_feed(feed_type => $feed_type, feed_listing => 'recent_changes'); };
    5454    is( $@, "", "->make_feed for $feed_type doesn't croak" );
     55
     56    # Ensure that the feed actually contained rss/atom (a good guide
     57    #  that we actually got the right feed)
     58    like( $feed_output, "/$feed_type/i", "Does contain the feed type" );
    5559
    5660    # Now write some data, first a minor edit then a non-minor one.
Note: See TracChangeset for help on using the changeset viewer.