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/52_display_diffs.t

    r564 r565  
    11use strict;
    22use CGI::Wiki::Setup::SQLite;
    3 use Config::Tiny;
    43use OpenGuides;
     4use OpenGuides::Test;
    55use Test::More tests => 4;
    66
     
    1313
    1414    CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } );
    15     my $config = Config::Tiny->new;
    16     $config->{_} = {
    17                      dbtype             => "sqlite",
    18                      dbname             => "t/node.db",
    19                      indexing_directory => "t/indexes",
    20                      script_name        => "wiki.cgi",
    21                      script_url         => "http://example.com/",
    22                      site_name          => "Test Site",
    23                      template_path      => "./templates",
    24                    };
     15    my $config = OpenGuides::Test->make_basic_config;
    2516    my $guide = OpenGuides->new( config => $config );
    2617    my $wiki = $guide->wiki;
Note: See TracChangeset for help on using the changeset viewer.