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

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

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

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

  ViewVC Help
Powered by ViewVC 1.1.26