Test Classery

jk2addict on 2008-05-01T16:45:50

So it finally happened this week. I needed to run a batch of live Catalyst tests against a controller three times: once as the default uri, once where the path config was changed to alter the uri, and once where the subclass was renamed to alter the uri.

Same tests. Three paths. Perfect opportunity to move to Test::Class for those tests. A little $self->path jiggery in the tests and two subclasses later and the deed is done.

Triple the tests in less than a half hour of coding. One setup method. Nice.