[guest - Sat Dec 24 08:09:15 2005]:
Show quoted text> Some people on the CGI::App list are reporting test failures that are
> a result of not requiring CGI::Application => 4 in the Makefile.PL
>
> One of the tests uses "add_callback()" which didn't appear until 4.0.
Also, since add_callback is called inside 'import', you can only ever
load the plugin while inside a CGI::Application subclass (which makes
sense). However, since the test script doesn't create a
CGI::Application subclass when it loads the plugin, it will always fail
with the following error:
t/00_compile....NOK 1
# Failed test 'use CGI::Application::Plugin::DebugScreen;'
# in t/00_compile.t at line 4.
# Tried to use 'CGI::Application::Plugin::DebugScreen'.
# Error: Can't locate object method "add_callback" via package
"main" at
/root/.cpan/build/CGI-Application-Plugin-DebugScreen-0.05/blib/lib/CGI/Application/Plugin/DebugScreen.pm
line 145.
The attached patch fixed the test script
Cheers,
Cees