remove debugging code
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / 10-user-autoload.t
CommitLineData
7afa5efd 1use strict;
2use warnings;
3use Test::More;
4use Catalyst::Authentication::Store::DBIx::Class::User;
5
6my $message = 'I exist';
7
8{
9 package My::Test;
10
11 sub exists { $message }
12}
13
14my $o = bless({
15 _user => bless({}, 'My::Test'),
16}, 'Catalyst::Authentication::Store::DBIx::Class::User');
17
18is($o->exists, $message, 'AUTOLOAD proxies ok');
19
20ok(my $meth = $o->can('exists'), 'can returns true');
21
7afa5efd 22is($o->$meth, $message, 'can returns right coderef');
23
24done_testing;