Ignore:
Timestamp:
Apr 5, 2006, 2:26:00 AM (16 years ago)
Author:
Earle Martin
Message:

New module, OpenGuides::Feed: this extracts the stuff formerly in OpenGuides::RDF (as sub make_recentchanges_rss) that was invoking CGI::Wiki::Plugin::RSS::ModWiki, and replaces it with a single make_feed method that can be used for any feed format, including Atom (using the new CGI::Wiki::Plugin::Atom). Changes to OpenGuides.pm and wiki.cgi are to use this new module appropriately.

File:
1 edited

Legend:

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

    r587 r753  
    4343my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
    4444
    45 my $rdf_writer = OpenGuides::RDF->new( wiki   => $wiki,
    46                                        config => $config );
     45my $feed = OpenGuides::Feed->new( wiki   => $wiki,
     46                                  config => $config );
    4747
    48 my $rss = eval { $rdf_writer->make_recentchanges_rss; };
    49 is( $@, "", "->make_recentchanges_rss doesn't croak" );
     48my $rss = eval { $feed->make_feed(feed_type => 'rss'); };
     49is( $@, "", "->make_feed for rss doesn't croak" );
    5050
    5151# Now write some data, first a minor edit then a non-minor one.
     
    9898
    9999# Check that the minor edits can be filtered out.
    100 $output = $guide->display_rss(
     100$output = $guide->display_feed(
     101                               feed_type          => "rss",
    101102                               items              => 5,
    102103                               username           => "bob",
Note: See TracChangeset for help on using the changeset viewer.