/[Arh]/t/00-model-Unit.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 /t/00-model-Unit.t

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

revision 13 by dpavlin, Thu Nov 29 16:40:10 2007 UTC revision 14 by dpavlin, Fri Nov 30 16:43:53 2007 UTC
# Line 53  isnt($o->id, $id, "And it is different f Line 53  isnt($o->id, $id, "And it is different f
53  # Searches in general  # Searches in general
54  my $collection =  Arh::Model::UnitCollection->new(current_user => $system_user);  my $collection =  Arh::Model::UnitCollection->new(current_user => $system_user);
55  $collection->unlimit;  $collection->unlimit;
56  is($collection->count, 3, "Finds 3 records");  is($collection->count, 4, "Finds 4 records");
57    
58  # Searches in specific  # Searches in specific
59  $collection->limit(column => 'id', value => $o->id);  $collection->limit(column => 'id', value => $o->id);
# Line 66  is($collection->count, 0, "Deleted row i Line 66  is($collection->count, 0, "Deleted row i
66    
67  # And the other one is still there  # And the other one is still there
68  $collection->unlimit;  $collection->unlimit;
69  is($collection->count, 2, "Still 2 left");  is($collection->count, 3, "Still 3 left");
70    

Legend:
Removed from v.13  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26