From: Dave Rolsky Date: Tue, 12 May 2009 20:16:39 +0000 (-0500) Subject: Missed a test that was badly testing for \n X-Git-Tag: 0.78^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c3d0d07d42a474f10ffd284d5873e0666191018;p=gitmo%2FMoose.git Missed a test that was badly testing for \n --- diff --git a/t/300_immutable/010_constructor_is_not_moose.t b/t/300_immutable/010_constructor_is_not_moose.t index 5f4e304..5efab10 100644 --- a/t/300_immutable/010_constructor_is_not_moose.t +++ b/t/300_immutable/010_constructor_is_not_moose.t @@ -26,9 +26,9 @@ BEGIN { extends 'NotMoose'; - ::stderr_is( + ::stderr_like( sub { Foo->meta->make_immutable }, - "Not inlining 'new' for Foo since it is not inheriting the default Moose::Object::new\nIf you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to Foo->meta->make_immutable\n", + qr/\QNot inlining 'new' for Foo since it is not inheriting the default Moose::Object::new\E\s+\QIf you are certain you don't need to inline your constructor, specify inline_constructor => 0 in your call to Foo->meta->make_immutable/, 'got a warning that Foo may not have an inlined constructor' ); }