=================================================================== RCS file: /cvs/todotxt/Text-Todo-REST-API/t/GET/list.t,v retrieving revision 1.6 retrieving revision 1.9 diff -u -r1.6 -r1.9 --- todotxt/Text-Todo-REST-API/t/GET/list.t 2010/01/26 05:47:30 1.6 +++ todotxt/Text-Todo-REST-API/t/GET/list.t 2010/02/26 05:24:13 1.9 @@ -7,7 +7,7 @@ # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org # COMPANY: Red River Communications # CREATED: 01/07/10 19:11 -# REVISION: $AFresh1: list.t,v 1.5 2010/01/26 04:30:13 andrew Exp $ +# REVISION: $AFresh1: list.t,v 1.8 2010/01/31 03:10:39 andrew Exp $ #=============================================================================== use strict; @@ -20,10 +20,10 @@ BEGIN { $api_class = 'Text::Todo::REST::API'; - $class = 'Text::Todo::REST::API::Actions::GET'; + $class = 'Text::Todo::REST::API::Actions::GET'; use_ok( $api_class, "use $api_class" ); - use_ok( $class, "use $class" ); + use_ok( $class, "use $class" ); } diag("Testing GET list $class $Text::Todo::REST::API::Actions::GET::VERSION"); @@ -34,27 +34,33 @@ my $list_should_be = [ { 'text' => '(A) entry 1 @one +uno', 'md5' => '931e0831c31a70928b29de55778dc294', - 'line' => 1 + 'line' => 1, + 'done' => undef, }, { 'text' => 'entry 2 @two +dos', 'md5' => 'b38dde8029c047e81379d9de581a6251', - 'line' => 2 + 'line' => 2, + 'done' => undef, }, { 'text' => '', 'md5' => 'd41d8cd98f00b204e9800998ecf8427e', - 'line' => 3 + 'line' => 3, + 'done' => undef, }, { 'text' => 'x completed entry 4', 'md5' => '8de0a2b65a50d5e30e84ad48af46fa78', - 'line' => 4 + 'line' => 4, + 'done' => 'x', }, { 'text' => '(B) entry 5 is priority', 'md5' => 'c1692dfbf3b5829b6bce44b1a1614980', - 'line' => 5 + 'line' => 5, + 'done' => undef, }, { 'text' => 'entry 6 +delete', 'md5' => 'e1f6bf867f75aa019063782554407d02', - 'line' => 6 + 'line' => 6, + 'done' => undef, } ]; @@ -66,16 +72,16 @@ foreach my $arg ( { list => undef, action => 'list', args => [] }, - 'todo_file', '/todo_file/list', - { path => '/todo_file/list' }, + 'todo_file', '/todo_file/', + { path => '/todo_file/' }, { list => 'todo_file', action => 'list', args => [] }, - 'todo', '/todo/list', - { path => '/todo/list' }, + 'todo', '/todo/', + { path => '/todo/' }, { list => 'todo', action => 'list', args => [] }, - 'todo.txt', '/todo.txt/list', - { path => '/todo.txt/list' }, + 'todo.txt', '/todo.txt/', + { path => '/todo.txt/' }, { list => 'todo.txt', action => 'list', args => [] }, ) {