/[SVNBrowser]/trunk/t/00-model-Branch.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/00-model-Branch.t

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

revision 55 by dpavlin, Sun Dec 10 00:01:33 2006 UTC revision 56 by dpavlin, Mon Sep 3 19:02:21 2007 UTC
# Line 19  ok($system_user, "Found a system user"); Line 19  ok($system_user, "Found a system user");
19    
20  # Try testing a create  # Try testing a create
21  my $o = SVNBrowser::Model::Branch->new(current_user => $system_user);  my $o = SVNBrowser::Model::Branch->new(current_user => $system_user);
22  my ($id) = $o->create();  my ($id) = $o->create( path => '/foobar/' );
23  ok($id, "Branch create returned success");  ok($id, "Branch create returned success");
24  ok($o->id, "New Branch has valid id set");  ok($o->id, "New Branch has valid id set");
25  is($o->id, $id, "Create returned the right id");  is($o->id, $id, "Create returned the right id");
26    
27  # And another  # And another
28  $o->create();  $o->create( path => '/bazboo/' );
29  ok($o->id, "Branch create returned another value");  ok($o->id, "Branch create returned another value");
30  isnt($o->id, $id, "And it is different from the previous one");  isnt($o->id, $id, "And it is different from the previous one");
31    

Legend:
Removed from v.55  
changed lines
  Added in v.56

  ViewVC Help
Powered by ViewVC 1.1.26