Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the App-Cmd CPAN distribution.

Report information
The Basics
Id: 61536
Status: resolved
Priority: 0/
Queue: App-Cmd

People
Owner: Nobody in particular
Requestors: pshangov [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.307
Fixed in: (no value)



Subject: Testing App::Cmd::Simple apps
Hi, I am trying to test an App::Cmd::Simple app with App::Cmd::Tester. The following line in App::Cmd::Tester::test_app $app = $app->new unless ref($app) or $app->isa('App::Cmd::Simple'); dies with Can't locate object method "new" via package "My::App::Module" (perhaps you forgot to load "My::App::Module"?) Any feedback would be appreciated. Cheers
Subject: Re: [rt.cpan.org #61536] Testing App::Cmd::Simple apps
Date: Tue, 21 Sep 2010 17:57:21 -0400
To: Peter Shangov via RT <bug-App-Cmd [...] rt.cpan.org>
From: Ricardo Signes <rjbs [...] cpan.org>
* Peter Shangov via RT <bug-App-Cmd@rt.cpan.org> [2010-09-21T17:30:53] Show quoted text
> > $app = $app->new unless ref($app) or $app->isa('App::Cmd::Simple'); > > dies with > > Can't locate object method "new" via package "My::App::Module" (perhaps > you forgot to load "My::App::Module"?)
Did you remember to load My::App::Module? Does it correctly inherit from App::Cmd or use App::Cmd::Setup? I can't help much without seeing the source or a minimal test case that reproduces the problem. -- rjbs
On Tue Sep 21 17:57:32 2010, RJBS wrote: Show quoted text
> * Peter Shangov via RT <bug-App-Cmd@rt.cpan.org> [2010-09-21T17:30:53]
> > > > $app = $app->new unless ref($app) or $app->isa('App::Cmd::Simple'); > > > > dies with > > > > Can't locate object method "new" via package "My::App::Module"
> (perhaps
> > you forgot to load "My::App::Module"?)
> > Did you remember to load My::App::Module? Does it correctly inherit > from > App::Cmd or use App::Cmd::Setup? I can't help much without seeing the > source > or a minimal test case that reproduces the problem. > >
Sure that was it. Thanks and sorry for the bogus report.