2022-08-19 23:28:16 -04:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
2022-10-01 18:00:23 -04:00
|
|
|
use Mojo::Base -strict;
|
2022-08-19 23:28:16 -04:00
|
|
|
use Test::More;
|
|
|
|
use Test::Mojo;
|
|
|
|
|
2022-10-01 18:00:23 -04:00
|
|
|
my $t = Test::Mojo->new('PostText');
|
2022-08-19 23:28:16 -04:00
|
|
|
|
2022-09-21 00:27:16 -04:00
|
|
|
$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/);
|
2022-08-19 23:28:16 -04:00
|
|
|
|
|
|
|
done_testing();
|