=================================================================== RCS file: /cvs/todotxt/Text-Todo-REST-API/t/DELETE.t,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- todotxt/Text-Todo-REST-API/t/DELETE.t 2010/01/18 13:47:53 1.3 +++ todotxt/Text-Todo-REST-API/t/DELETE.t 2010/01/23 07:15:40 1.4 @@ -7,7 +7,7 @@ # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org # COMPANY: Red River Communications # CREATED: 01/07/10 19:11 -# REVISION: $AFresh1: DELETE.t,v 1.2 2010/01/17 23:48:06 andrew Exp $ +# REVISION: $AFresh1: DELETE.t,v 1.3 2010/01/18 13:47:53 andrew Exp $ #=============================================================================== use strict; @@ -24,9 +24,9 @@ diag("Testing DELETE $class $Text::Todo::REST::API::VERSION"); -my $api = new_ok( $class, [ { todo_dir => 't/lists', path_info => '/todo' } ] ); +my $api = new_ok( $class, [ { todo_dir => 't/lists' } ] ); my $result; ok( !eval { $result = $api->DELETE() }, 'DELETE method' ); -like( $@, '/^Unable to handle DELETE \[list\]/', 'Failed DELETE as expected' ); -$result = undef; +like( $@, '/^Unable to handle \[delete_files\]/', + 'Failed DELETE as expected' );