If anyone else runs into this problem you can simply do<br><br>def assert_arrayEquals a1, a2<br> assert_equal a1, a2<br>end<br><br>and now your tests will work.<br><br>Bret<br><br><div><span class="gmail_quote">On 7/11/06,
<b class="gmail_sendername">Mike Townley</b> <<a href="mailto:mtownley@firstlook.biz">mtownley@firstlook.biz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you! This is really what I was looking for. Great. I don't have to<br>rewrite too much now. I'll give this a shot and let you know if it<br>doesn't work out.<br>Previous tester probably shouldn't have used that method. He used it all
<br>over the place in the old scripts, I wont use it any new ones.<br><br>Cheers!<br>Mike<br><br>-----Original Message-----<br>From: <a href="mailto:wtr-general-bounces@rubyforge.org">wtr-general-bounces@rubyforge.org</a>
<br>[mailto:<a href="mailto:wtr-general-bounces@rubyforge.org">wtr-general-bounces@rubyforge.org</a>] On Behalf Of Attebery, Bill<br>Sent: Tuesday, July 11, 2006 3:56 PM<br>To: <a href="mailto:wtr-general@rubyforge.org">wtr-general@rubyforge.org
</a><br>Subject: Re: [Wtr-general] assert_arrayEquals<br><br><br><br>Thank you for the alternative methods. Can anyone shed some light on why<br>it was removed in the first place? This really complicates things. I<br>wasn't expecting all this rewriting after upgrading watir. Otherwise I
<br>would have stuck with 1.4<br><br>Mike<br><br><br>That method appears to be in the testUnitAddons.rb file in the watir<br>directory in 1.4 -- can't you simply do one of the following:<br> 1- copy the method and paste it into the
1.5 testUnitAddons.rb file<br>(assuming it exists - I can't confirm as I<br> haven't been able to install and use 1.5 successfully yet -<br>problems with the attach method),<br> 2- extend the Test::Unit::Assertions module in your test file
<br> 3- simply require testUnitAddons.rb in your test files?<br><br>Below is the method from Test::Unit::Assertions in testUnitAddons.rb<br><br> def assert_arrayEquals(expectArray, actualArray, message = nil )<br> _wrap_assertion do
<br> assert_block("assert should not be called with a block.") {<br>!block_given? }<br> assert_equal(expectArray.length, actualArray.length, "Lengths<br>did not match")<br><br> assert_block("contents are different." ){ compareArrays(
<br>expectArray, actualArray) }<br> end #_wrap<br> end #def<br><br>The content contained in this electronic message is not intended to<br>constitute formation of a contract binding TWTC. TWTC will be<br>contractually bound only upon execution, by an authorized officer, of
<br>a contract including agreed terms and conditions or by express<br>application of its tariffs.<br><br>This message is intended only for the use of the individual or entity<br>to which it is addressed. If the reader of this message is not the
<br>intended recipient, or the employee or agent responsible for<br>delivering the message to the intended recipient, you are hereby<br>notified that any dissemination, distribution or copying of this<br>message is strictly prohibited. If you have received this
<br>communication in error, please notify us immediately by replying to<br>the sender of this E-Mail or by telephone.<br>_______________________________________________<br>Wtr-general mailing list<br><a href="mailto:Wtr-general@rubyforge.org">
Wtr-general@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/wtr-general">http://rubyforge.org/mailman/listinfo/wtr-general</a><br>_______________________________________________<br>Wtr-general mailing list
<br><a href="mailto:Wtr-general@rubyforge.org">Wtr-general@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/wtr-general">http://rubyforge.org/mailman/listinfo/wtr-general</a><br></blockquote></div><br>