Moar tests
This commit is contained in:
parent
d27945b2b3
commit
c9ffdd4760
3
t/spam.t
3
t/spam.t
|
@ -15,5 +15,8 @@ $t->get_ok('/spam')->status_is(200)
|
||||||
->text_is(h2 => 'Messages from the World Wide Web');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
$t->get_ok('/spam/1')->status_is(200)
|
$t->get_ok('/spam/1')->status_is(200)
|
||||||
->text_is(h2 => 'Messages from the World Wide Web');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
|
# Page shouldn't exist (unless Guestbook gets very popular!)
|
||||||
|
$t->get_ok('/spam/1337')->status_is(404)
|
||||||
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
|
|
||||||
done_testing();
|
done_testing();
|
||||||
|
|
3
t/view.t
3
t/view.t
|
@ -15,5 +15,8 @@ $t->get_ok('/view')->status_is(200)
|
||||||
->text_is(h2 => 'Messages from the World Wide Web');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
$t->get_ok('/view/1')->status_is(200)
|
$t->get_ok('/view/1')->status_is(200)
|
||||||
->text_is(h2 => 'Messages from the World Wide Web');
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
|
# Page shouldn't exist (unless Guestbook gets very popular!)
|
||||||
|
$t->get_ok('/view/1337')->status_is(404)
|
||||||
|
->text_is(h2 => 'Messages from the World Wide Web');
|
||||||
|
|
||||||
done_testing();
|
done_testing();
|
||||||
|
|
Loading…
Reference in a new issue