in reply to Can't find my method . . .
can_ok($module, @methods). "We can access the ->connect() method" is being treated as the name of a method. Use
can_ok('YMD::WWW::DB','connect')
or
ok( YMD::WWW::DB->can('connect'), 'We can access the ->connect() method' );
The former is probably better.
|
|---|