diff --git a/t/post.t b/t/post.t index 34f90ac..3c9bf1b 100644 --- a/t/post.t +++ b/t/post.t @@ -9,27 +9,27 @@ use Test::Mojo; my $script = curfile->dirname->sibling('PostText.pl'); my $t = Test::Mojo->new($script); my %valid_params = ( - author => 'Anonymous', - title => 'hi', - body => 'ayy... lmao' + author => 'Anonymous', + title => 'hi', + body => 'ayy... lmao' ); my %invalid_title = ( author => 'Anonymous', - title => '', - body => 'ayy... lmao' + title => '', + body => 'ayy... lmao' ); my %invalid_post = ( author => 'Anonymous', - title => 'hi', - body => 'a' + title => 'hi', + body => 'a' ); my %valid_remark = ( author => 'Anonymous', - body => 'hi' + body => 'hi' ); my %invalid_remark = ( author => 'Anonymous', - body => 'a' + body => 'a' ); $t->ua->max_redirects(1); diff --git a/t/thread.t b/t/thread.t index 4527d76..d9df331 100644 --- a/t/thread.t +++ b/t/thread.t @@ -9,6 +9,7 @@ use Test::Mojo; my $script = curfile->dirname->sibling('PostText.pl'); my $t = Test::Mojo->new($script); -$t->get_ok('/thread/1')->status_is(200)->text_like(h2 => qr/Thread #1/); +$t->get_ok('/thread/1' )->status_is(200)->text_like(h2 => qr/Thread #1/); +$t->get_ok('/thread/1/1')->status_is(200)->text_like(h2 => qr/Thread #1/); done_testing(); diff --git a/templates/post.html.ep b/templates/post.html.ep index 0c48b5e..d55b45e 100644 --- a/templates/post.html.ep +++ b/templates/post.html.ep @@ -5,19 +5,19 @@
Invalid title: 1 to 127 characters please.
+Invalid title: 1 to 127 characters please.
<% } =%>Invalid text: Up to 4,000 characters only.
+Invalid text: Up to 4,000 characters only.
<% } =%>