Changeset 1081 for trunk/t/21_rdf.t

Show
Ignore:
Timestamp:
06/16/07 20:45:04 (19 months ago)
Author:
ilmari
Message:

List all contributors in RDF version of nodes (fixes #106)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/21_rdf.t

    r1063 r1081  
    1616} 
    1717 
    18 plan tests => 27; 
     18plan tests => 28; 
    1919 
    2020Wiki::Toolkit::Setup::SQLite::setup( { dbname => "t/node.db" } ); 
     
    2525$config->default_city( "London" ); 
    2626$config->default_country( "United Kingdom" ); 
     27$config->geo_handler( 3 ); 
    2728 
    2829eval { require Wiki::Toolkit::Search::Plucene; }; 
     
    4546 
    4647# Test the data for a node that exists. 
     48OpenGuides::Test->write_data( 
     49        guide              => $guide, 
     50        node               => "Calthorpe Arms", 
     51        content            => "CAMRA-approved pub near King's Cross", 
     52        comment            => "Stub page, please update!", 
     53        username           => "Anonymous", 
     54        postcode           => "WC1X 8JR", 
     55        locales            => "Bloomsbury\r\nSt Pancras", 
     56        phone              => "test phone number", 
     57        website            => "test website", 
     58        hours_text         => "test hours", 
     59        latitude           => "51.524193", 
     60        longitude          => "-0.114436", 
     61        summary            => "a really nice pub", 
     62); 
     63 
    4764OpenGuides::Test->write_data( 
    4865        guide              => $guide, 
     
    84101like( $rdfxml, qr|<foaf:Person rdf:ID="Kake">|, 
    85102    "last username to edit used as contributor" ); 
     103like( $rdfxml, qr|<foaf:Person rdf:ID="Anonymous">|, 
     104    "... as well as previous usernames" ); 
    86105 
    87 like( $rdfxml, qr|<wiki:version>1</wiki:version>|, "version picked up" ); 
     106like( $rdfxml, qr|<wiki:version>2</wiki:version>|, "version picked up" ); 
    88107 
    89108like( $rdfxml, qr|<rdf:Description rdf:about="">|, "sets the 'about' correctly" );