=================================================================== RCS file: /cvs/todotxt/Text-Todo-REST-API/t/formats/md5.t,v retrieving revision 1.1 retrieving revision 1.3 diff -u -r1.1 -r1.3 --- todotxt/Text-Todo-REST-API/t/formats/md5.t 2010/01/17 22:56:15 1.1 +++ todotxt/Text-Todo-REST-API/t/formats/md5.t 2010/01/18 13:47:53 1.3 @@ -7,13 +7,13 @@ # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org # COMPANY: Red River Communications # CREATED: 01/07/10 19:11 -# REVISION: $AFresh1: text.t,v 1.3 2010/01/17 21:53:35 andrew Exp $ +# REVISION: $AFresh1: md5.t,v 1.2 2010/01/18 03:51:40 andrew Exp $ #=============================================================================== use strict; use warnings; -use Test::More tests => 40; +use Test::More tests => 39; my $class; my $subclass; @@ -25,14 +25,13 @@ $class = 'Text::Todo::REST::API'; use_ok( $class, "use $class" ); - $subclass = $class . '::' . $ext; - use_ok( $subclass, "use $subclass" ); + $subclass = $class . '::Representations::' . $ext; } -diag("Testing entry $subclass $Text::Todo::REST::API::md5::VERSION"); +diag("Testing entry $subclass $Text::Todo::REST::API::VERSION"); my $api = new_ok( $class, - [ { basedir => 't', path_info => '/lists/todo.' . $ext } ] ); + [ { todo_dir => 't/lists', path_info => '/todo.' . $ext } ] ); isa_ok( $api, $subclass ); my $list_should_be = [ @@ -82,8 +81,8 @@ foreach my $e ( @{$list_should_be} ) { my $api = new_ok( $class, - [ { basedir => 't', - path_info => '/lists/todo/entry/' . $e->{md5} . '.' . $ext + [ { todo_dir => 't/lists', + path_info => '/todo/entry/' . $e->{md5} . '.' . $ext } ] );