Remove taint mode from the tests.
[catagits/Test-WWW-Mechanize-Catalyst.git] / t / auth-test.t
CommitLineData
5b9187af 1#!perl
6bc86362 2use strict;
3use warnings;
4use lib 'lib';
5use Test::More tests => 5;
6use lib 't/lib';
7use Test::WWW::Mechanize::Catalyst 'Catty';
8
9my $root = "http://localhost";
10
46377765 11my $m = Test::WWW::Mechanize::Catalyst->new;
6bc86362 12$m->credentials( 'user', 'pass' );
13
14$m->get_ok("$root/check_auth_basic/");
15is( $m->ct, "text/html" );
16is( $m->status, 200 );
17
18$m->credentials( 'boofar', 'pass' );
19
20$m->get("$root/check_auth_basic/");
21is( $m->ct, "text/html" );
22is( $m->status, 401 );
23