--- trunk/t/00-model-Source.t 2006/05/26 19:29:07 26 +++ trunk/t/00-model-Source.t 2006/05/26 21:21:25 27 @@ -10,6 +10,8 @@ use Jifty::Test tests => 11; +my $nr = 6; + # Make sure we can load the model use_ok('Transports::Model::Source'); @@ -32,7 +34,7 @@ # Searches in general my $collection = Transports::Model::SourceCollection->new(current_user => $system_user); $collection->unlimit; -is($collection->count, 4, "Finds two records"); +is($collection->count, $nr + 2, "Finds two records"); # Searches in specific $collection->limit(column => 'id', value => $o->id); @@ -45,5 +47,5 @@ # And the other one is still there $collection->unlimit; -is($collection->count, 3, "Still one left"); +is($collection->count, $nr + 1, "Still one left");