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

Annotation of todotxt/Text-Todo-REST-API/t/formats.t, Revision 1.5

1.1       andrew      1: #===============================================================================
                      2: #
1.5     ! andrew      3: #         FILE:  formats.t
1.1       andrew      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.5     ! andrew     10: #     REVISION:  $AFresh1: formats.t,v 1.4 2010/01/19 03:18:34 andrew Exp $
1.1       andrew     11: #===============================================================================
                     12:
                     13: use strict;
                     14: use warnings;
                     15:
1.5     ! andrew     16: use Test::More tests => 4;
1.1       andrew     17:
                     18: my $class;
1.5     ! andrew     19:
1.1       andrew     20: BEGIN {
1.5     ! andrew     21:     $class = 'Text::Todo::REST::API::Representations';
1.1       andrew     22:     use_ok( $class, "use $class" );
                     23: }
                     24:
1.5     ! andrew     25: diag("Testing $class $Text::Todo::REST::API::Representations::VERSION");
        !            26:
        !            27: my $path_info = '/';
1.1       andrew     28:
1.5     ! andrew     29: my $api = new_ok( $class, [] );
1.1       andrew     30:
1.5     ! andrew     31: ok( !defined $api->content_type, 'content_type method' );
        !            32: ok( !defined $api->can_render, 'can_render method' );

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