From: Jesse Luehrs Date: Sat, 4 Feb 2012 00:06:07 +0000 (-0600) Subject: make this test less reliant on exact error message X-Git-Tag: 2.0402~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a66d8212e5d75b9aecdd28cf9baad24f14394d87;p=gitmo%2FMoose.git make this test less reliant on exact error message --- diff --git a/t/metaclasses/throw_error.t b/t/metaclasses/throw_error.t index 246754d..1b068cb 100644 --- a/t/metaclasses/throw_error.t +++ b/t/metaclasses/throw_error.t @@ -74,7 +74,7 @@ with_immutable { { my $e = create_error( Bar->new ); ok( !ref( $e->{error} ), "error is a string" ); - like( $e->{error}, qr/line $e->{line}$/s, "croak" ); + like( $e->{error}, qr/line $e->{line}\.?$/s, "croak" ); } {