initial checkin
[gitmo/MooseX-AutoDoc.git] / t / 001-basic.t
CommitLineData
3890b670 1#!/usr/bin/perl -w
2
3use strict;
4use warnings;
5use MooseX::AutoDoc;
6use FindBin '$Bin';
7use lib "$Bin/lib";
8
9use Test::More tests => 6;
10
11BEGIN{
12 use_ok("AutoDocTest1");
13}
14
15ok(
16 defined(my $autodoc = eval {MooseX::AutoDoc->new}),
17 "Was instantiated successfully"
18 );
19die "Failed to instantiate MooseX::AutoDoc" unless $autodoc;
20
21ok(
22 defined(my $view = eval {$autodoc->view}),
23 "Was instantiated successfully"
24 );
25die "Failed to instantiate MooseX::AutoDoc::View::TT" unless $view;
26can_ok $view, "render_class", "render_role";
27
28ok length($view->role_template), "Role template appears to have been loaded successfully";
29ok length($view->class_template), "Class template appears to have been loaded successfully";