[BACK]Return to GET.t CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo-REST-API / t

Annotation of todotxt/Text-Todo-REST-API/t/GET.t, Revision 1.2

1.1       andrew      1: #===============================================================================
                      2: #
                      3: #         FILE:  GET.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.2     ! andrew     10: #     REVISION:  $AFresh1: GET.t,v 1.1 2010/01/17 19:41:24 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: BEGIN {
                     20:     $class = 'Text::Todo::REST::API';
                     21:     use_ok( $class, "use $class" );
                     22: }
                     23:
                     24: diag("Testing GET $class $Text::Todo::REST::API::VERSION");
                     25:
                     26: my $api = new_ok( $class, [ { basedir => 't', path_info => '/lists/todo' } ] );
                     27:
                     28: my $result;
                     29: ok( !eval { $result = $api->GET() }, 'GET method' );
1.2     ! andrew     30: like( $@, '/^Unable to Dump \[files\]/', 'Failed GET as expected' );
1.1       andrew     31: $result = undef;

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>