/[Frey]/trunk/t/02-Frey-DBI-Sponge.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/02-Frey-DBI-Sponge.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 936 - (show annotations)
Tue Jan 6 11:56:28 2009 UTC (15 years, 3 months ago) by dpavlin
File MIME type: application/x-troff
File size: 512 byte(s)
sponge improvements
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 my $debug = @ARGV ? 1 : 0;
6
7 use Test::More tests => 4;
8 use lib 'lib';
9
10 use Data::Dump qw/dump/;
11
12 BEGIN {
13 use_ok('Frey::DBI::Sponge');
14 }
15
16 ok( my $o = Frey::DBI::Sponge->new(
17 request_url => '/',
18 debug => $debug,
19 sponge => {
20 table => 'test',
21 NAME => [ 'foo', 'bar' ],
22 rows => [
23 [ qw/a b/ ],
24 [ qw/c d/ ],
25 ],
26 },
27 ), 'new' );
28 ok( my $markup = $o->to_database_as_markup, 'to_database' );
29 diag dump( $markup ) if $debug;
30 like( $markup, qr/test/, 'markup' );
31

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26