=================================================================== RCS file: /cvs/todotxt/Text-Todo-REST-API/t/POST.t,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- todotxt/Text-Todo-REST-API/t/POST.t 2010/01/18 13:47:53 1.3 +++ todotxt/Text-Todo-REST-API/t/POST.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: POST.t,v 1.2 2010/01/17 23:48:06 andrew Exp $ +# REVISION: $AFresh1: POST.t,v 1.3 2010/01/18 13:47:53 andrew Exp $ #=============================================================================== use strict; @@ -16,6 +16,7 @@ use Test::More tests => 4; my $class; + BEGIN { $class = 'Text::Todo::REST::API'; use_ok( $class, "use $class" ); @@ -23,9 +24,8 @@ diag("Testing POST $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->POST() }, 'POST method' ); -like( $@, '/^Unable to handle POST \[list\]/', 'Failed POST as expected' ); -$result = undef; +like( $@, '/^Unable to handle \[post_files\]/', 'Failed POST as expected' );