=================================================================== RCS file: /cvs/todotxt/Text-Todo-REST-API/t/formats/text.t,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- todotxt/Text-Todo-REST-API/t/formats/text.t 2010/01/17 19:57:16 1.1 +++ todotxt/Text-Todo-REST-API/t/formats/text.t 2010/01/17 21:08:55 1.2 @@ -7,7 +7,7 @@ # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org # COMPANY: Red River Communications # 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; @@ -75,3 +75,17 @@ 'Dump method' ); is( $result, $list_dump_should_be, 'Got expected Dump result' ); $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' ); + +}