[Catalyst] Semi-OT testing question
jester at panix.com
Fri Jun 10 15:38:39 GMT 2011
On Fri, Jun 10, 2011 at 11:19:14AM -0400, Ronald J Kimball wrote:
> On Fri, Jun 10, 2011 at 11:10 AM, Jesse Sheidlower <jester at panix.com> wrote:
> > ok( $mech_admin->tick('roles','2'), "ticked the newwords_admin checkbox" );
> > The only thing failing here is the _test_ in the first line of this. The
> > form is submitted correctly, and when I test the "view" page for this
> > newly-created user, it has the correct role.
> > Similarly, for my "edit" test, I untick this role, tick a different
> > role, and the results are correct. But both "ok" tests for the unticking
> > and ticking, fail.
> > What's wrong with my test here?
> WWW::Mechanize->tick() and WWW::Mechanize->untick() don't return anything on
> success. They call WWW::Mechanize->warn() if the referenced checkbox does
> not exist.
Ah. That would indeed explain it then. Thanks!
More information about the Catalyst