perfect - that&#39;s the method i was looking for.&nbsp; Thanks!&nbsp; <br><br><div><span class="gmail_quote">On 14/02/2008, <b class="gmail_sendername">Rick DeNatale</b> &lt;<a href="mailto:rick.denatale@gmail.com">rick.denatale@gmail.com</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;">
On 2/14/08, Max Williams &lt;<a href="mailto:toastkid.williams@gmail.com">toastkid.williams@gmail.com</a>&gt; wrote:<br> &gt; Hi David - thanks for replying.&nbsp;&nbsp;The literal doesn&#39;t work either, because of<br> &gt; all the params at the end, and i don&#39;t have named routes in this old,<br>
 &gt; non-restful app.&nbsp;&nbsp;I see your point about the hash...is there any way to get<br> &gt; the redirected-to url from &#39;response&#39; and test against that?&nbsp;&nbsp;Then i could<br> &gt; split it at &quot;?&quot; to ignore the params.&nbsp;&nbsp;(I&#39;d rather not include the specific<br>
 &gt; params in this test since i really just want to know about where it&#39;s<br> &gt; redirected to).<br> &gt;<br> &gt; So, ideally i could do something like this -<br> &gt;<br> &gt; response.url.split(&quot;?&quot;).first.should<br>
 &gt; eql(&quot;<a href="http://test.host/admin/users/batch_saved">http://test.host/admin/users/batch_saved</a>&quot;)<br> &gt;<br> &gt;&nbsp;&nbsp;I&#39;ve been looking for documentation for methods for the response object, to<br>
 &gt; get the url, but i can&#39;t find any in the api docs (i&#39;m probably just looking<br> &gt; in the wrong place).&nbsp;&nbsp;I can see the url data in the object but it&#39;s private.<br> <br> <br>Well the RedirectTo matcher gets it using<br>
 <br>&nbsp;&nbsp;&nbsp;&nbsp;response.redirect_url<br> <br> I&#39;d probably write the check as<br> <br>&nbsp;&nbsp; response.should be_redirect<br>&nbsp;&nbsp; response.redirect_url.should<br> match(%r{^<a href="http://test.host/admin/users/batch_saved(\?|$)}">http://test.host/admin/users/batch_saved(\?|$)}</a>)<br>
 <br><br> --<br> Rick DeNatale<br> <br> My blog on Ruby<br> <a href="http://talklikeaduck.denhaven2.com/">http://talklikeaduck.denhaven2.com/</a><br> <br>_______________________________________________<br> rspec-users mailing list<br>
 <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br> <a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br> </blockquote></div><br>