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

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

revision 9 by dpavlin, Thu Nov 29 16:40:10 2007 UTC revision 14 by dpavlin, Fri Nov 30 16:43:53 2007 UTC
# Line 32  isnt($o->id, $id, "And it is different f Line 32  isnt($o->id, $id, "And it is different f
32  # Searches in general  # Searches in general
33  my $collection =  Arh::Model::UnitMaterialCollection->new(current_user => $system_user);  my $collection =  Arh::Model::UnitMaterialCollection->new(current_user => $system_user);
34  $collection->unlimit;  $collection->unlimit;
35  is($collection->count, 3, "Finds 3 records");  is($collection->count, 5, "Finds 5 records");
36    
37  # Searches in specific  # Searches in specific
38  $collection->limit(column => 'id', value => $o->id);  $collection->limit(column => 'id', value => $o->id);
# Line 45  is($collection->count, 0, "Deleted row i Line 45  is($collection->count, 0, "Deleted row i
45    
46  # And the other one is still there  # And the other one is still there
47  $collection->unlimit;  $collection->unlimit;
48  is($collection->count, 2, "Still 2 left");  is($collection->count, 4, "Still 4 left");
49    

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

  ViewVC Help
Powered by ViewVC 1.1.26