Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Catalyst + FormFu + Test::WWW::Mechanize::Catalyst = Kablooey

by matija (Priest)
on Oct 10, 2009 at 16:25 UTC ( #800466=note: print w/ replies, xml ) Need Help??


in reply to Catalyst + FormFu + Test::WWW::Mechanize::Catalyst = Kablooey

Well, I've done some more digging, even up to creating a new catalyst project to see if I can figure out where the conflict occurs by adding stuff instead of commenting them out.

I finally decided that the problem was not FormFu, but Test::MockObject. While tests where I had Test::WWW::Mechanize::Catalyst and Test::MockObject (but not FormFu) passed, if I tried to enter them with a debugger, allocating the mech object crashed.

So I tried getting rid of Test::MockObject, and considering I only needed to mock a single method, I was able to do it with an assignment to %INC and a sub MyApp::Foo::Bar {...} declaration.

I'll see if I can do all the tests I need in conjunction with Catalyst modules without using MockObject.

But I want to thank the people who drew my attention to FormHandler. I may not use it in this project, but I think I'm going to use it in something soon...


Comment on Re: Catalyst + FormFu + Test::WWW::Mechanize::Catalyst = Kablooey
Download Code
Replies are listed 'Oldest First'.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://800466]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2015-07-07 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls