Changeset 565 for trunk/t/12_macros.t


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/12_macros.t

    r564 r565  
    11use strict;
    22use CGI::Wiki::Setup::SQLite;
    3 use Config::Tiny;
    43use OpenGuides;
     4use OpenGuides::Test;
    55use Test::More tests => 6;
    66
     
    1717    CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } );
    1818
    19     my $config = Config::Tiny->new;
    20     $config->{_} = {
    21                      dbtype             => "sqlite",
    22                      dbname             => "t/node.db",
    23                      indexing_directory => "t/indexes",
    24                      script_url         => "",
    25                      script_name        => "",
    26                      site_name          => "Test",
    27                      template_path      => "./templates",
    28                      home_name          => "Home",
    29                    };
    30 
     19    my $config = OpenGuides::Test->make_basic_config;
    3120    my $guide = OpenGuides->new( config => $config );
    3221    my $wiki = $guide->wiki;
Note: See TracChangeset for help on using the changeset viewer.