diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-06-13 10:46:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-06-13 10:46:21 -0500 |
commit | b7b7c17b7a7a2eab5b82011cd49ce4223470deba (patch) | |
tree | 0a2510f48fb080ef6a7410186cd3cb58ac7afdb6 /t/02-dzil.t | |
parent | 3cdbd3b4f09e64d737cbc4fb6d64a4e48d6d2db4 (diff) | |
download | pod-weaver-section-template-b7b7c17b7a7a2eab5b82011cd49ce4223470deba.tar.gz pod-weaver-section-template-b7b7c17b7a7a2eab5b82011cd49ce4223470deba.zip |
add test for dzil integration0.01
Diffstat (limited to 't/02-dzil.t')
-rw-r--r-- | t/02-dzil.t | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/t/02-dzil.t b/t/02-dzil.t new file mode 100644 index 0000000..d312beb --- /dev/null +++ b/t/02-dzil.t @@ -0,0 +1,121 @@ +#!/usr/bin/env perl +use strict; +use warnings; +BEGIN { + unless (eval "require Dist::Zilla; require Dist::Zilla::Plugin::PodWeaver; 1") { + require Test::More; + Test::More::plan(skip_all => 'Dist::Zilla and Dist::Zilla::Plugin::PodWeaver are required for this test'); + } +} + +use Test::More; + +use Dist::Zilla::Tester; +use FindBin; +use Path::Class; +use Pod::Elemental; +use Pod::Weaver; +use lib "$FindBin::Bin/../lib"; + +my $zilla = Dist::Zilla::Tester->from_config({ + dist_root => dir($FindBin::Bin, '02'), +}); +$zilla->build; + +chdir $zilla->tempdir->subdir('build'); +is(file('lib', 'Foo', 'Bar.pm')->slurp, <<'PM', "got the right Bar.pm file contents"); +package Foo::Bar; +# ABSTRACT: turns trinkets into baubles + +sub bar { +} + +1; + +__END__ +=pod + +=head1 BUGS + +No known bugs. + +Please report any bugs through RT: email +C<bug-foo-bar at rt.cpan.org>, or browse to +L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Foo-Bar>. + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc Foo::Bar + +You can also look for information at: + +=over 4 + +=item * AnnoCPAN: Annotated CPAN documentation + +L<http://annocpan.org/dist/Foo-Bar> + +=item * CPAN Ratings + +L<http://cpanratings.perl.org/d/Foo-Bar> + +=item * RT: CPAN's request tracker + +L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Foo-Bar> + +=item * Search CPAN + +L<http://search.cpan.org/dist/Foo-Bar> + +=back + +=cut + +PM + +is(file('lib', 'Foo', 'Baz.pm')->slurp, <<'PM', "got the right Baz.pm file contents"); +package Foo::Baz; + +sub baz { +} + +1; + +__END__ +=pod + +=head1 SUPPORT + +You can find this documentation for this module with the perldoc command. + + perldoc Foo::Bar + +You can also look for information at: + +=over 4 + +=item * AnnoCPAN: Annotated CPAN documentation + +L<http://annocpan.org/dist/Foo-Bar> + +=item * CPAN Ratings + +L<http://cpanratings.perl.org/d/Foo-Bar> + +=item * RT: CPAN's request tracker + +L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Foo-Bar> + +=item * Search CPAN + +L<http://search.cpan.org/dist/Foo-Bar> + +=back + +=cut + +PM + +done_testing; |