<div class="gmail_quote">On Fri, Jun 10, 2011 at 11:10 AM, Jesse Sheidlower <span dir="ltr"><<a href="mailto:jester@panix.com">jester@panix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
ok( $mech_admin->tick('roles','2'), "ticked the newwords_admin checkbox" );<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The only thing failing here is the _test_ in the first line of this. The<br>
form is submitted correctly, and when I test the "view" page for this<br>
newly-created user, it has the correct role.<br>
<br>
Similarly, for my "edit" test, I untick this role, tick a different<br>
role, and the results are correct. But both "ok" tests for the unticking<br>
and ticking, fail.<br>
<br>
What's wrong with my test here?<br></blockquote><div><br></div><div>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.</div>
<div><br></div><div>Ronald</div><div> </div></div>