[Moose-commits] r7202 - Moose/trunk/t/300_immutable

t0m at code2.0beta.co.uk t0m at code2.0beta.co.uk
Tue Dec 30 20:06:23 GMT 2008


Author: t0m
Date: 2008-12-30 12:06:22 -0800 (Tue, 30 Dec 2008)
New Revision: 7202

Added:
   Moose/trunk/t/300_immutable/013_immutable_roundtrip.t
Log:
TODO test for immutable bug

Added: Moose/trunk/t/300_immutable/013_immutable_roundtrip.t
===================================================================
--- Moose/trunk/t/300_immutable/013_immutable_roundtrip.t	                        (rev 0)
+++ Moose/trunk/t/300_immutable/013_immutable_roundtrip.t	2008-12-30 20:06:22 UTC (rev 7202)
@@ -0,0 +1,36 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval "use Test::Output";
+plan skip_all => "Test::Output is required for this test" if $@;
+
+plan tests => 1;
+
+{
+    package Foo;
+    use Moose;
+    __PACKAGE__->meta->make_immutable;
+}
+TODO: {
+    package Bar;
+    use Moose;
+
+    extends 'Foo';
+
+    __PACKAGE__->meta->make_immutable;
+    __PACKAGE__->meta->make_mutable;
+
+    use Test::More;
+    local $TODO = 'Known bug';
+
+    ::stderr_unlike(
+        sub { Bar->meta->make_immutable },
+        qr/Not inlining a constructor/,
+        'no warning that Bar may not have an inlined constructor'
+    );
+}
+




More information about the Moose-commits mailing list