test for no Moo::sification
Graham Knop [Mon, 24 Jun 2013 04:49:43 +0000 (00:49 -0400)]
xt/moo-sification.t [new file with mode: 0644]

diff --git a/xt/moo-sification.t b/xt/moo-sification.t
new file mode 100644 (file)
index 0000000..5c0d375
--- /dev/null
@@ -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;