/[Frey]/trunk/t/08-Frey-ORM-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 /trunk/t/08-Frey-ORM-CRUD.t

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

trunk/t/20-frey-web-crud.t revision 532 by dpavlin, Wed Nov 26 07:57:12 2008 UTC trunk/t/08-Frey-ORM-CRUD.t revision 969 by dpavlin, Fri Jan 9 16:02:33 2009 UTC
# Line 11  use lib 'lib'; Line 11  use lib 'lib';
11  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
12    
13  BEGIN {  BEGIN {
14          use_ok('Frey::Web::CRUD');          use_ok('Frey::ORM::CRUD');
15          use_ok('Strix::User');          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::CRUD->new( fey_class => ref($fey), fey => $fey ), 'new' );  ok( my $u = Frey::ORM::CRUD->new( fey_class => ref($fey), fey => $fey ), 'new' );
22  isa_ok( $u, 'Frey::Web::CRUD' );  isa_ok( $u, 'Frey::ORM::CRUD' );
23    
24  diag dump( $u ) if $debug;  diag dump( $u ) if $debug;
25    
# Line 27  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::CRUD' );  #       isa_ok( $u, 'Frey::ORM::CRUD' );
31  #}  #}
32    
33  ok( my $h1 = $u->process(), 'process view/div' );  ok( my $h1 = $u->process(), 'process view/div' );

Legend:
Removed from v.532  
changed lines
  Added in v.969

  ViewVC Help
Powered by ViewVC 1.1.26