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/27_geo_data_edit_form.t

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