version 1.1, 2010/01/17 19:57:16 |
version 1.2, 2010/01/17 21:08:55 |
|
|
# AUTHOR: Andrew Fresh (AAF), andrew@cpan.org |
# AUTHOR: Andrew Fresh (AAF), andrew@cpan.org |
# COMPANY: Red River Communications |
# COMPANY: Red River Communications |
# CREATED: 01/07/10 19:11 |
# CREATED: 01/07/10 19:11 |
# REVISION: $AFresh1$ |
# REVISION: $AFresh1: text.t,v 1.1 2010/01/17 19:57:16 andrew Exp $ |
#=============================================================================== |
#=============================================================================== |
|
|
use strict; |
use strict; |
|
|
'Dump method' ); |
'Dump method' ); |
is( $result, $list_dump_should_be, 'Got expected Dump result' ); |
is( $result, $list_dump_should_be, 'Got expected Dump result' ); |
$result = undef; |
$result = undef; |
|
|
|
foreach my $e ( @{$list_should_be} ) { |
|
my $api = new_ok( |
|
$class, |
|
[ { basedir => 't', |
|
path_info => '/lists/todo/entry/' . $e->{md5} . '.txt' |
|
} |
|
] |
|
); |
|
my $entry; |
|
ok( $entry = $api->GET(), "get_entry by GET()" ); |
|
is_deeply( $entry, $e->{text} . "\n", 'got correct entry' ); |
|
|
|
} |