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/61_bug_textareas.t

    r564 r565  
    11use CGI::Wiki::Setup::SQLite;
    2 use Config::Tiny;
    3 use Cwd;
    42use OpenGuides::Template;
     3use OpenGuides::Test;
    54use OpenGuides::Utils;
    65use Test::More tests => 1;
     
    1413
    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                    };
    26 
     15    my $config = OpenGuides::Test->make_basic_config;
    2716    my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
    2817
Note: See TracChangeset for help on using the changeset viewer.