Skip to content

Commit

Permalink
test validation check after custom error
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 11, 2013
1 parent c257b6d commit 97e88d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/mojolicious/validation_lite_app.t
Expand Up @@ -133,7 +133,8 @@ ok !$validation->required('foo')->has_error, 'no error';
is_deeply $validation->output, {foo => 'bar'}, 'right result';
ok $validation->error(foo => ['custom_check'])->has_error, 'has error';
is_deeply $validation->output, {}, 'right result';
is_deeply $validation->error('foo'), ['custom_check'], 'right error';
is_deeply $validation->size(1, 2)->error('foo'), ['custom_check'],
'right error';

# CSRF protection
$validation = $t->app->validation->input({foo => 'bar'})->csrf_protect;
Expand Down

0 comments on commit 97e88d1

Please sign in to comment.