/[Frey]/branches/no-pager/t/20-frey-web-crud.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 /branches/no-pager/t/20-frey-web-crud.t

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

trunk/t/20-fey-web-row.t revision 98 by dpavlin, Fri Jul 11 17:53:08 2008 UTC branches/no-pager/t/20-frey-web-crud.t revision 702 by dpavlin, Wed Dec 3 21:12:43 2008 UTC
# Line 2  Line 2 
2  use strict;  use strict;
3  use warnings;  use warnings;
4    
5  my $debug = shift @ARGV;  my $debug = @ARGV ? 1 : 0;
6    
7  use Test::More tests => 20;  use Test::More tests => 21;
8  use lib 'lib';  use lib 'lib';
9    
10  #use Devel::LeakTrace::Fast;  #use Devel::LeakTrace::Fast;
11  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
12    
13  BEGIN {  BEGIN {
14          use_ok('Frey::Web::Row');          use_ok('Frey::Web::CRUD');
15            use_ok('Strix::User');
16  }  }
17    
18  ok( my $fey = Strix::User->new( id => 1, ime => 'foo', prezime => 'bar' ), 'Strix::User' );  ok( my $fey = Strix::User->new( id => 1, ime => 'foo', prezime => 'bar' ), 'Strix::User' );
19  diag dump( $fey ) if $debug;  diag dump( $fey ) if $debug;
20    
21  ok( my $u = Frey::Web::Row->new( fey => $fey ), 'new' );  ok( my $u = Frey::Web::CRUD->new( fey_class => ref($fey), fey => $fey ), 'new' );
22  isa_ok( $u, 'Frey::Web::Row' );  isa_ok( $u, 'Frey::Web::CRUD' );
23    
24  diag dump( $u ) if $debug;  diag dump( $u ) if $debug;
25    
# Line 26  ok( my @c = $u->meta->get_attribute_list Line 27  ok( my @c = $u->meta->get_attribute_list
27  diag dump( @c ) if $debug;  diag dump( @c ) if $debug;
28    
29  #while ( $u = $i->next ) {  #while ( $u = $i->next ) {
30  #       isa_ok( $u, 'Frey::Web::Row' );  #       isa_ok( $u, 'Frey::Web::CRUD' );
31  #}  #}
32    
33  ok( my $h1 = $u->process(), 'process view/div' );  ok( my $h1 = $u->process(), 'process view/div' );

Legend:
Removed from v.98  
changed lines
  Added in v.702

  ViewVC Help
Powered by ViewVC 1.1.26