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.0500~103 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2dc82f5015c46e8415b640c798a9064e1486d585;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" ); } {