]> iEval git - gruntmaster-page.git/blobdiff - t/mech.t
Add example test suite
[gruntmaster-page.git] / t / mech.t
diff --git a/t/mech.t b/t/mech.t
new file mode 100644 (file)
index 0000000..5ea673b
--- /dev/null
+++ b/t/mech.t
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+use strict;
+use warnings;
+
+use Test::More tests => 5;
+use Test::WWW::Mechanize::PSGI;
+
+my $mech = Test::WWW::Mechanize::PSGI->new(app => do 'app.psgi');
+$mech->get_ok('/');
+$mech->title_is('Gruntmaster 6000');
+
+$mech->get_ok('/pb/');
+$mech->title_is('Problems');
+$mech->content_contains('Spell');
This page took 0.019203 seconds and 4 git commands to generate.