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

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

revision 8 by dpavlin, Thu Nov 29 11:20:24 2007 UTC revision 9 by dpavlin, Thu Nov 29 16:40:10 2007 UTC
# Line 36  isnt($o->id, $id, "And it is different f Line 36  isnt($o->id, $id, "And it is different f
36  # Searches in general  # Searches in general
37  my $collection =  Arh::Model::PlaceCollection->new(current_user => $system_user);  my $collection =  Arh::Model::PlaceCollection->new(current_user => $system_user);
38  $collection->unlimit;  $collection->unlimit;
39  is($collection->count, 2, "Finds two records");  is($collection->count, 3, "Finds 3 records");
40    
41  # Searches in specific  # Searches in specific
42  $collection->limit(column => 'id', value => $o->id);  $collection->limit(column => 'id', value => $o->id);
# Line 49  is($collection->count, 0, "Deleted row i Line 49  is($collection->count, 0, "Deleted row i
49    
50  # And the other one is still there  # And the other one is still there
51  $collection->unlimit;  $collection->unlimit;
52  is($collection->count, 1, "Still one left");  is($collection->count, 2, "Still 2 left");
53    

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

  ViewVC Help
Powered by ViewVC 1.1.26