--- trunk/t/50-strix-user.t 2008/07/13 16:15:45 110 +++ trunk/t/50-strix-user.t 2008/07/13 16:17:34 111 @@ -4,7 +4,7 @@ my $debug = shift @ARGV; -use Test::More tests => 7; +use Test::More tests => 8; use lib 'lib'; #use Devel::LeakTrace::Fast; @@ -19,11 +19,15 @@ diag dump( $u ) if $debug; -ok( my $i = $u->collection( { limit => 2, offset => 1 } ), 'collection' ); +ok( my $i = $u->collection( { per_page => 2 } ), 'collection' ); isa_ok( $i, 'Fey::Object::Iterator' ); diag dump( $i ) if $debug; -while ( $u = $i->next ) { - isa_ok( $u, 'Strix::User' ); +ok( my $r = $u->total_rows, 'total_rows' ); +diag "total_rows: $r"; # if $debug; + +while ( my $row = $i->next ) { + isa_ok( $row, 'Strix::User' ); } +