version 1.2, 2010/01/18 03:51:40 |
version 1.3, 2010/01/18 13:47:53 |
|
|
# 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: md5.t,v 1.1 2010/01/17 22:56:15 andrew Exp $ |
# REVISION: $AFresh1: md5.t,v 1.2 2010/01/18 03:51:40 andrew Exp $ |
#=============================================================================== |
#=============================================================================== |
|
|
use strict; |
use strict; |
use warnings; |
use warnings; |
|
|
use Test::More tests => 40; |
use Test::More tests => 39; |
|
|
my $class; |
my $class; |
my $subclass; |
my $subclass; |
|
|
diag("Testing entry $subclass $Text::Todo::REST::API::VERSION"); |
diag("Testing entry $subclass $Text::Todo::REST::API::VERSION"); |
|
|
my $api = new_ok( $class, |
my $api = new_ok( $class, |
[ { basedir => 't', path_info => '/lists/todo.' . $ext } ] ); |
[ { todo_dir => 't/lists', path_info => '/todo.' . $ext } ] ); |
isa_ok( $api, $subclass ); |
isa_ok( $api, $subclass ); |
|
|
my $list_should_be = [ |
my $list_should_be = [ |
|
|
foreach my $e ( @{$list_should_be} ) { |
foreach my $e ( @{$list_should_be} ) { |
my $api = new_ok( |
my $api = new_ok( |
$class, |
$class, |
[ { basedir => 't', |
[ { todo_dir => 't/lists', |
path_info => '/lists/todo/entry/' . $e->{md5} . '.' . $ext |
path_info => '/todo/entry/' . $e->{md5} . '.' . $ext |
} |
} |
] |
] |
); |
); |