Tag the old version before converting to the new auth. Convert to new auth, add live...
[catagits/Catalyst-Authentication-Store-Htpasswd.git] / t / live-test.t
diff --git a/t/live-test.t b/t/live-test.t
new file mode 100644 (file)
index 0000000..5c42d28
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+use Test::More tests => 3;
+
+# setup library path
+use FindBin qw($Bin);
+use lib "$Bin/lib";
+
+# make sure testapp works
+use ok 'TestApp';
+
+# a live test against TestApp, the test application
+use Test::WWW::Mechanize::Catalyst 'TestApp';
+my $mech = Test::WWW::Mechanize::Catalyst->new;
+$mech->get_ok('http://localhost/', 'get main page');
+$mech->content_like(qr/^Authenticated:mufasa$/i, 'see if it has our text');
+