]> iEval git - gruntmaster-page.git/commitdiff
Add example test suite
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 15 Feb 2014 20:43:57 +0000 (22:43 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 15 Feb 2014 20:43:57 +0000 (22:43 +0200)
t/mech.t [new file with mode: 0644]

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.024014 seconds and 4 git commands to generate.