/[webpac2]/trunk/t/4-db.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/4-db.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30 by dpavlin, Sun Jul 17 22:48:25 2005 UTC revision 31 by dpavlin, Sun Jul 24 15:03:11 2005 UTC
# Line 20  my $debug = 1; Line 20  my $debug = 1;
20    
21  diag "NULL DB";  diag "NULL DB";
22    
23  ok($db = new WebPAC::DB( debug => $debug ), "new");  ok($db = new WebPAC::DB( debug => $debug, no_log => 1, ), "new");
24    
25  ok(! $db->path, "path");  ok(! $db->path, "path");
26    
# Line 36  ok(my $path = tempdir( CLEANUP => 1 ), " Line 36  ok(my $path = tempdir( CLEANUP => 1 ), "
36    
37  diag "DB path: $path";  diag "DB path: $path";
38    
39  ok($db = new WebPAC::DB( path => $path, debug => $debug ), "new");  ok($db = new WebPAC::DB( path => $path, debug => $debug, no_log => 1 ), "new");
40    
41  cmp_ok($db->{'path'}, 'eq', $path, "path");  cmp_ok($db->{'path'}, 'eq', $path, "path");
42    

Legend:
Removed from v.30  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.26