Ignore:
Timestamp:
Nov 26, 2004, 2:12:39 PM (17 years ago)
Author:
kake
Message:

Take out some more common testing code into OpenGuides::Test - make_basic_config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/55_node_history.t

    r564 r565  
    11use CGI::Wiki::Setup::SQLite;
    2 use Config::Tiny;
    3 use Cwd;
    42use OpenGuides;
     3use OpenGuides::Test;
    54use Test::More tests => 2;
    65
     
    1413    CGI::Wiki::Setup::SQLite::cleardb( { dbname => "t/node.db" } );
    1514    CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } );
    16     my $config = Config::Tiny->new;
    17     $config->{_} = {
    18                      dbtype             => "sqlite",
    19                      dbname             => "t/node.db",
    20                      indexing_directory => "t/indexes",
    21                      script_url         => "http://wiki.example.com/",
    22                      script_name        => "mywiki.cgi",
    23                      site_name          => "CGI::Wiki Test Site",
    24                      template_path      => cwd . "/templates",
    25                      home_name          => "Home",
    26                    };
    27 
     15    my $config = OpenGuides::Test->make_basic_config;
     16    $config->{_}{script_name} = "mywiki.cgi";
     17    $config->{_}{script_url} = "http://example.com/";
    2818    my $guide = OpenGuides->new( config => $config );
    2919
Note: See TracChangeset for help on using the changeset viewer.