Skip to content

Commit

Permalink
just use the same token twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 10, 2016
1 parent d14e796 commit 7169ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/mojolicious/validation_lite_app.t
Expand Up @@ -227,7 +227,7 @@ $validation = $t->app->validation->input({csrf_token => 'abc', foo => 'bar'})
ok !$validation->has_error, 'no error';
ok $validation->required('foo')->is_valid, 'valid';
is_deeply $validation->output, {foo => 'bar'}, 'right result';
$validation = $t->app->validation->input({csrf_token => ['abc', 'def']})
$validation = $t->app->validation->input({csrf_token => ['abc', 'abc']})
->csrf_token('abc')->csrf_protect;
ok $validation->has_error, 'has error';
is_deeply $validation->error('csrf_token'), ['csrf_protect'], 'right error';
Expand Down

0 comments on commit 7169ceb

Please sign in to comment.