Ignore:
Timestamp:
Dec 14, 2004, 6:46:00 PM (17 years ago)
Author:
kake
Message:

Encapsulate config data in OpenGuides::Config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/27_geo_data_edit_form.t

    r586 r587  
    4444CGI::Wiki::Setup::SQLite::setup( { dbname => "t/node.db" } );
    4545my $config = OpenGuides::Test->make_basic_config;
    46 $config->{_}{use_plucene} = 1;
     46$config->use_plucene( 1 );
    4747
    4848# British National Grid guides should have os_x/os_y fields.
     
    8989
    9090# Irish National Grid guides should have osie_x/osie_y fields.
    91 $config->{_}{geo_handler} = 2;
     91$config->geo_handler( 2 );
    9292$guide = OpenGuides->new( config => $config );
    9393$wiki = $guide->wiki;
     
    129129
    130130# UTM guides should have lat/long fields.
    131 $config->{_}{geo_handler} = 3;
    132 $config->{_}{ellipsoid} = "Airy";
     131$config->geo_handler( 3 );
     132$config->ellipsoid( "Airy" );
    133133$guide = OpenGuides->new( config => $config );
    134134$wiki = $guide->wiki;
Note: See TracChangeset for help on using the changeset viewer.