Test for single-remark view
This commit is contained in:
parent
a0a423e3aa
commit
f9a9d71be9
|
@ -24,7 +24,6 @@ Run the tests locally (against development environment)
|
||||||
|
|
||||||
## TODOs
|
## TODOs
|
||||||
|
|
||||||
1. More tests (single remark view at least... maybe more)
|
|
||||||
1. Grow into Mojo hybrid
|
1. Grow into Mojo hybrid
|
||||||
|
|
||||||
## Crazy future ideas
|
## Crazy future ideas
|
||||||
|
|
14
t/remark.t
Normal file
14
t/remark.t
Normal 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();
|
Loading…
Reference in New Issue
Block a user