From: Tomas Doran Date: Tue, 30 Dec 2008 20:06:22 +0000 (+0000) Subject: TODO test for immutable bug X-Git-Tag: 0.64~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=43d2935a437525be38c9b88f94b17f4cece499eb;p=gitmo%2FMoose.git TODO test for immutable bug --- diff --git a/t/300_immutable/013_immutable_roundtrip.t b/t/300_immutable/013_immutable_roundtrip.t new file mode 100644 index 0000000..a8f9b8d --- /dev/null +++ b/t/300_immutable/013_immutable_roundtrip.t @@ -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' + ); +} +