From: Shawn M Moore Date: Sun, 8 Mar 2009 07:20:06 +0000 (-0400) Subject: Test fixes for the more descriptive error messages X-Git-Tag: 0.72_01~84 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0003b201b0d91b787ed7f311a9618e5bc00881ec;p=gitmo%2FMoose.git Test fixes for the more descriptive error messages --- diff --git a/t/300_immutable/010_constructor_is_not_moose.t b/t/300_immutable/010_constructor_is_not_moose.t index 2852c55..8b47463 100644 --- a/t/300_immutable/010_constructor_is_not_moose.t +++ b/t/300_immutable/010_constructor_is_not_moose.t @@ -28,7 +28,7 @@ plan tests => 6; ::stderr_is( sub { Foo->meta->make_immutable }, - "Not inlining a constructor for Foo since it is not inheriting the default Moose::Object constructor\n", + "Not inlining a constructor for Foo since it is not inheriting the default Moose::Object constructor\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", 'got a warning that Foo may not have an inlined constructor' ); } diff --git a/t/300_immutable/011_constructor_is_wrapped.t b/t/300_immutable/011_constructor_is_wrapped.t index 5b7ddfb..099f200 100644 --- a/t/300_immutable/011_constructor_is_wrapped.t +++ b/t/300_immutable/011_constructor_is_wrapped.t @@ -25,7 +25,7 @@ plan tests => 1; ::stderr_is( sub { Foo->meta->make_immutable }, - "Not inlining a constructor for Foo since it is not inheriting the default Moose::Object constructor\n (constructor has method modifiers which would be lost if it were inlined)\n", + "Not inlining a constructor for Foo since it is not inheriting the default Moose::Object constructor\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 (constructor has method modifiers which would be lost if it were inlined)\n", 'got a warning that Foo may not have an inlined constructor' ); }