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/26_geo_data_search_form.t

    r564 r565  
    11use strict;
    22use CGI::Wiki::Setup::SQLite;
    3 use Config::Tiny;
    43use OpenGuides;
    54use OpenGuides::Test;
     
    4342
    4443CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } );
    45 my $config = Config::Tiny->new;
    46 $config->{_} = {
    47                  dbtype             => "sqlite",
    48                  dbname             => "t/node.db",
    49                  indexing_directory => "t/indexes",
    50                  script_name        => "wiki.cgi",
    51                  script_url         => "http://example.com/",
    52                  site_name          => "Test Site",
    53                  home_name          => "Home",
    54                  template_path      => "./templates",
    55                  use_plucene        => 1,
    56                  geo_handler        => 1,
    57                };
     44my $config = OpenGuides::Test->make_basic_config;
     45$config->{_}{use_plucene} = 1;
    5846
    5947# British National Grid guides should have os_x/os_y/os_dist search fields.
Note: See TracChangeset for help on using the changeset viewer.