/[Frey]/trunk/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

Contents of /trunk/t/05-frey-dumper.t

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26