=================================================================== RCS file: /cvs/todotxt/Text-Todo-REST-API/t/formats/text.t,v retrieving revision 1.6 retrieving revision 1.8 diff -u -r1.6 -r1.8 --- todotxt/Text-Todo-REST-API/t/formats/text.t 2010/01/17 23:09:21 1.6 +++ todotxt/Text-Todo-REST-API/t/formats/text.t 2010/01/18 13:47:53 1.8 @@ -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.5 2010/01/17 23:08:20 andrew Exp $ +# REVISION: $AFresh1: text.t,v 1.7 2010/01/18 03:51:40 andrew Exp $ #=============================================================================== use strict; use warnings; -use Test::More tests => 46; +use Test::More tests => 45; my $class; my $subclass; @@ -25,14 +25,13 @@ $class = 'Text::Todo::REST::API'; use_ok( $class, "use $class" ); - $subclass = $class . '::text'; - use_ok( $subclass, "use $subclass" ); + $subclass = $class . '::Representations::text'; } -diag("Testing entry $subclass $Text::Todo::REST::API::text::VERSION"); +diag("Testing entry $subclass $Text::Todo::REST::API::VERSION"); my $api = new_ok( $class, - [ { basedir => 't', path_info => '/lists.' . $ext } ] ); + [ { todo_dir => 't/lists', path_info => '/.' . $ext } ] ); isa_ok( $api, $subclass ); my $files_should_be = ['todo.txt']; @@ -46,7 +45,7 @@ is_deeply( $result, $files_dump_should_be, 'files Dump as expected' ); $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 = [ @@ -95,8 +94,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 } ] );