Failing test for a bug in the singleton extending a plain Moose class. topic/extends_moose_bug
Norbert Buchmuller [Mon, 6 Sep 2010 13:22:53 +0000 (15:22 +0200)]
Probably the same bug as RT #58083.

t/007-extends_moose.t [new file with mode: 0644]

diff --git a/t/007-extends_moose.t b/t/007-extends_moose.t
new file mode 100644 (file)
index 0000000..dc9cfbb
--- /dev/null
@@ -0,0 +1,17 @@
+use strict;
+use warnings;
+use Test::More;
+
+BEGIN {
+    package MooseX::Singleton::Test::Base;
+    use Moose;
+
+    package MooseX::Singleton::Test;
+    use MooseX::Singleton;
+
+    extends 'MooseX::Singleton::Test::Base';
+}
+
+can_ok( 'MooseX::Singleton::Test', 'instance');
+
+done_testing;