From: Graham Knop Date: Mon, 24 Jun 2013 04:49:43 +0000 (-0400) Subject: test for no Moo::sification X-Git-Tag: v1.003000~31 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=632929718e221044d82088ccbee0d97821f43f18;p=gitmo%2FMoo.git test for no Moo::sification --- diff --git a/xt/moo-sification.t b/xt/moo-sification.t new file mode 100644 index 0000000..5c0d375 --- /dev/null +++ b/xt/moo-sification.t @@ -0,0 +1,17 @@ +use strictures 1; +use Test::More; + +BEGIN { + package Foo; + use Moo; + has one => (is => 'ro'); +} + +no Moo::sification; +use Moose; +use Class::MOP; + +is Class::MOP::get_metaclass_by_name('Foo'), undef, + 'no metaclass for Moo class after no Moo::sification'; + +done_testing;