Add a test
Tomas Doran [Wed, 1 Sep 2010 21:25:45 +0000 (21:25 +0000)]
t/10-user-autoload.t

index e58c835..74b243d 100644 (file)
@@ -21,4 +21,6 @@ ok(my $meth = $o->can('exists'), 'can returns true');
 
 is($o->$meth, $message, 'can returns right coderef');
 
+is($o->can('non_existent_method'), undef, 'can on non existent method returns undef');
+
 done_testing;