[Catalyst] Semi-OT testing question
Ronald J Kimball
rkimball at pangeamedia.com
Fri Jun 10 15:19:14 GMT 2011
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.
Ronald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110610/d3404=
7b3/attachment.htm
More information about the Catalyst
mailing list