Lil moar test
This commit is contained in:
parent
40c23cc9b4
commit
5bf6670351
6
t/post.t
6
t/post.t
|
@ -37,6 +37,12 @@ my %invalid_remark = (
|
||||||
body => 'a'
|
body => 'a'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# No CAPTCHA yet
|
||||||
|
$t->get_ok('/human/thread/post')->status_is(302)
|
||||||
|
->header_like(Location => qr/captcha/);
|
||||||
|
$t->get_ok('/human/remark/post/1')->status_is(302)
|
||||||
|
->header_like(Location => qr/captcha/);
|
||||||
|
|
||||||
# Do CAPTCHA
|
# Do CAPTCHA
|
||||||
$t->post_ok($bump_thread_url, form => \%good_captcha)
|
$t->post_ok($bump_thread_url, form => \%good_captcha)
|
||||||
->status_is(302)
|
->status_is(302)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user