plan tests => 12;
}
-use Path::Class;
-
use File::Temp qw/tempfile/;
my $m; BEGIN { use_ok($m = "Catalyst::Plugin::Authentication::Store::Htpasswd::Backend") }
$passwd->add_user("user", "s3cr3t");
-
can_ok($m, "new");
isa_ok(my $o = $m->new( $passwd ), $m);
can_ok($m, "file");
isa_ok( $o->file, "Authen::Htpasswd");
-
can_ok( $m, "user_supports");
ok( $m->user_supports(qw/password self_check/), "user_supports self check" );