/[Frey]/branches/dbic/t/05-frey-dumper.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

Annotation of /branches/dbic/t/05-frey-dumper.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 998 - (hide annotations)
Sun Jan 11 22:54:35 2009 UTC (15 years, 4 months ago) by dpavlin
File MIME type: application/x-troff
File size: 539 byte(s)
DBIx::Class experimental implementation
1 dpavlin 287 #!/usr/bin/perl
2     use strict;
3     use warnings;
4    
5     my $debug = @ARGV ? 1 : 0;
6    
7 dpavlin 464 use Test::More tests => 6;
8 dpavlin 287 use lib 'lib';
9    
10     use Data::Dump qw/dump/;
11    
12 dpavlin 467 sub class { 'Frey::View::Dumper' }
13 dpavlin 464
14 dpavlin 287 BEGIN {
15 dpavlin 464 use_ok( class );
16 dpavlin 797 use_ok('Frey::Class::Loader');
17 dpavlin 287 }
18    
19 dpavlin 464 my $param = {
20     debug => $debug,
21     data => { foo => 'bar' },
22     };
23 dpavlin 455
24 dpavlin 797 ok( my $o = Frey::Class::Loader->new_frey_class( class, $param ), 'new' );
25 dpavlin 455 ok( my $markup = $o->as_markup, 'markup' );
26 dpavlin 287 diag $markup if $debug;
27     like( $markup, qr/foo.*bar/, 'correct' );
28 dpavlin 464 is_deeply( $o->as_data, $param->{data}, 'as_data' );
29 dpavlin 287

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26