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

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

revision 1 by dpavlin, Thu May 4 15:12:03 2006 UTC revision 6 by dpavlin, Fri May 5 12:25:30 2006 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 = Transports::Model::Source->new(current_user => $system_user);  my $o = Transports::Model::Source->new(current_user => $system_user);
22  my ($id) = $o->create();  my ($id) = $o->create( name => 'src1' );
23  ok($id, "Source create returned success");  ok($id, "Source create returned success");
24  ok($o->id, "New Source has valid id set");  ok($o->id, "New Source 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( name => 'src2' );
29  ok($o->id, "Source create returned another value");  ok($o->id, "Source 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.1  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26