Changeset 361 for trunk/t/13_cookies.t

Show
Ignore:
Timestamp:
06/07/04 21:39:35 (5 years ago)
Author:
kake
Message:

Test overhaul - no longer require database access info.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/t/13_cookies.t

    r302 r361  
    11use strict; 
    22use Config::Tiny; 
    3 use Test::More tests => 16; 
    4  
    5 use_ok( "OpenGuides::CGI" ); 
     3use OpenGuides::CGI; 
     4use Test::More tests => 15; 
    65 
    76eval { OpenGuides::CGI->make_prefs_cookie; }; 
     
    1110ok( $@, "...or if config isn't a Config::Tiny" ); 
    1211 
    13 my $config = Config::Tiny->read( "t/21_wiki.conf" ); 
     12my $config = Config::Tiny->new; 
     13$config->{_} = { 
     14                 site_name => "Test Site", 
     15               }; 
    1416 
    1517eval { OpenGuides::CGI->make_prefs_cookie( config => $config ); };