[Catalyst] writing a test suite for my app

Matt S Trout dbix-class at trout.me.uk
Mon May 15 01:12:57 CEST 2006


Daniel McBrearty wrote:
> I'm thinking that
> 
> ok ( request('public/natlang'))
> 
> should pass.
> 
> [ ok ( request('/public/natlang')) works, which is fine by me ... though 
> I'd have expected this to not work first as the first / belongs to the 
> docroot in cat, doesn't it? ]

I'm not entirely sure what you mean by "belongs to the docroot"; I think 
I might have expected both to work and would suspect it's down to how 
the URI's constructed internally before being passed to the app itself.

request('/...') is certainly the better way to do it though.



More information about the Catalyst mailing list