Skip to content

Commit

Permalink
make test match error
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Jan 31, 2013
1 parent 9c4b266 commit 1c770fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/callback.t
Expand Up @@ -25,4 +25,8 @@ my $return = test_app('Test::WithCallback', [ qw(lol -e 2) ]);
is($return->stdout, 'yay', "Callback validated correctly"); is($return->stdout, 'yay', "Callback validated correctly");


$return = test_app('Test::WithCallback', [ qw(lol -e 1) ]); $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.