Skip to content
Browse files

make test match error

  • Loading branch information...
1 parent 9c4b266 commit 1c770fc33a9ad370745f86a07cc58871532ea772 @rjbs committed Jan 30, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 t/callback.t
View
6 t/callback.t
@@ -25,4 +25,8 @@ my $return = test_app('Test::WithCallback', [ qw(lol -e 2) ]);
is($return->stdout, 'yay', "Callback validated correctly");
$return = test_app('Test::WithCallback', [ qw(lol -e 1) ]);
-is($return->error, 'Something other than this stack trace', "Failing Params::Validate callback prints nice error message");
+like(
+ $return->error,
+ qr/even.+valid.email/,
+ "Failing Params::Validate callback prints nice error message"
+);

0 comments on commit 1c770fc

Please sign in to comment.
Something went wrong with that request. Please try again.