Test for single-remark view

This commit is contained in:
swagg boi 2022-09-03 13:08:03 -04:00
parent a0a423e3aa
commit f9a9d71be9
2 changed files with 14 additions and 1 deletions

View file

@ -24,7 +24,6 @@ Run the tests locally (against development environment)
## TODOs
1. More tests (single remark view at least... maybe more)
1. Grow into Mojo hybrid
## Crazy future ideas

14
t/remark.t Normal file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Mojo::File qw{curfile};
use Test::Mojo;
my $script = curfile->dirname->sibling('PostText.pl');
my $t = Test::Mojo->new($script);
$t->get_ok('/remark/1')->status_is(200)->text_like(h2 => qr/Remark - #1/);
done_testing();