My advice would be to replace all mentions of the method with calls to assert_equal. <br><br>But some people who are conservative might prefer using the new method definition i provided below as it would require changing fewer files.
<br><br>Bret<br><br><br><div><span class="gmail_quote">On 7/11/06, <b class="gmail_sendername">Mike Townley</b> &lt;<a href="mailto:mtownley@firstlook.biz">mtownley@firstlook.biz</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So should I use this instead of the original code for this method?<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 Chris McMahon<br>Sent: Tuesday, July 11, 2006 5:35 PM<br>To: <a href="mailto:wtr-general@rubyforge.org">wtr-general@rubyforge.org</a><br>Subject: Re: [Wtr-general] assert_arrayEquals
<br><br>On 7/11/06, Bret Pettichord &lt;<a href="mailto:bret@pettichord.com">bret@pettichord.com</a>&gt; wrote:<br>&gt; If anyone else runs into this problem you can simply do<br>&gt;<br>&gt; def assert_arrayEquals a1, a2
<br>&gt;&nbsp;&nbsp; assert_equal a1, a2<br>&gt; end<br>&gt;<br>&gt; and now your tests will work.<br><br>That's what Dave and I were kind of discussing.&nbsp;&nbsp;I think the original<br>assert would pass if you compared [1,2,3] and [3,2,1], and would also
<br>give you an error msg. if the arrays had different number of elements.<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>