4 use Catalyst::Authentication::Store::DBIx::Class::User;
6 my $message = 'I exist';
11 sub exists { $message }
15 _user => bless({}, 'My::Test'),
16 }, 'Catalyst::Authentication::Store::DBIx::Class::User');
18 is($o->exists, $message, 'AUTOLOAD proxies ok');
20 ok(my $meth = $o->can('exists'), 'can returns true');
22 is($o->$meth, $message, 'can returns right coderef');
24 is($o->can('non_existent_method'), undef, 'can on non existent method returns undef');