From: Rafael Kitover Date: Thu, 5 Aug 2010 02:46:22 +0000 (-0400) Subject: add simple test for compatibility with MooseX::Role::Parameterized X-Git-Tag: v0.18~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8017308bf29f3f4592d25ec79c6d036c90a82ea9;p=gitmo%2FMooseX-ClassAttribute.git add simple test for compatibility with MooseX::Role::Parameterized --- diff --git a/t/07-parameterized-role.t b/t/07-parameterized-role.t new file mode 100644 index 0000000..393b802 --- /dev/null +++ b/t/07-parameterized-role.t @@ -0,0 +1,25 @@ +use strict; +use warnings; +use Test::More; + +BEGIN { + unless (eval { require MooseX::Role::Parameterized }) { + plan skip_all => 'This test needs MooseX::Role::Parameterized'; + } +} + +eval <<'EOF'; + package Role; + use MooseX::Role::Parameterized; + use MooseX::ClassAttribute; + role {}; + + package Class; + use Moose; + with 'Role'; +EOF + +ok((not $@), 'used MooseX::ClassAttribute in MooseX::Role::Parameterized role'); +diag $@ if $@; + +done_testing;