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

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

revision 58 by dpavlin, Tue Dec 5 10:17:28 2006 UTC revision 59 by dpavlin, Mon Sep 3 19:11:26 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::Action->new(current_user => $system_user);  my $o = SVNBrowser::Model::Action->new(current_user => $system_user);
22  my ($id) = $o->create();  my ($id) = $o->create(
23            revision => 1,
24            type => 'A',
25            branch => '/trunk',
26            rel_path => '/foo',
27    );
28  ok($id, "Action create returned success");  ok($id, "Action create returned success");
29  ok($o->id, "New Action has valid id set");  ok($o->id, "New Action has valid id set");
30  is($o->id, $id, "Create returned the right id");  is($o->id, $id, "Create returned the right id");
31    
32  # And another  # And another
33  $o->create();  $o->create(
34            revision => 2,
35            type => 'M',
36            branch => '/trunk',
37            rel_path => '/foo',
38    );
39  ok($o->id, "Action create returned another value");  ok($o->id, "Action create returned another value");
40  isnt($o->id, $id, "And it is different from the previous one");  isnt($o->id, $id, "And it is different from the previous one");
41    

Legend:
Removed from v.58  
changed lines
  Added in v.59

  ViewVC Help
Powered by ViewVC 1.1.26