Annotation of todotxt/Text-Todo-REST-API/t/PUT.t, Revision 1.4
1.1 andrew 1: #===============================================================================
2: #
3: # FILE: PUT.t
4: #
5: # DESCRIPTION: Test Text::Todo::REST::API
6: #
7: # AUTHOR: Andrew Fresh (AAF), andrew@cpan.org
8: # COMPANY: Red River Communications
9: # CREATED: 01/07/10 19:11
1.4 ! andrew 10: # REVISION: $AFresh1: PUT.t,v 1.3 2010/01/18 13:47:53 andrew Exp $
1.1 andrew 11: #===============================================================================
12:
13: use strict;
14: use warnings;
15:
16: use Test::More tests => 4;
17:
18: my $class;
19:
20: BEGIN {
21: $class = 'Text::Todo::REST::API';
22: use_ok( $class, "use $class" );
23: }
24:
25: diag("Testing PUT $class $Text::Todo::REST::API::VERSION");
26:
1.4 ! andrew 27: my $api = new_ok( $class, [ { todo_dir => 't/lists' } ] );
1.1 andrew 28:
29: my $result;
30: ok( !eval { $result = $api->PUT() }, 'PUT method' );
1.4 ! andrew 31: like( $@, '/^Unable to handle \[put_files\]/', 'Failed PUT as expected' );
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>