Thanks for your answers, David. I'll investigate. It's still a bit hard for me to understand where are the boundaries between rails tests and rspec.<br><br>Cheers,<br><br>David<br><br><div><span class="gmail_quote">
On 7/2/07, <b class="gmail_sendername">David Chelimsky</b> <<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</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;">
On 7/2/07, David Leal <<a href="mailto:dgleal@gmail.com">dgleal@gmail.com</a>> wrote:<br>> Hi David, thanks for your reply.<br>><br>> Regarding the last topic below, there's something about which I'm not quite
<br>> clear:<br>><br>> The catchall method that I'm trying to test works by getting a path from the<br>> request object passed to it (during testing it's a TestRequest object). If I<br>> understand correctly, there is no way to test this method without writing an
<br>> integration test. But shouldn't the request object honor the path I've set<br>> instead of resetting it?<br><br>I've never tried to do what you're doing so I can't answer from<br>experience. What I can tell you is that the TestRequest object is part
<br>of Rails, not rspec, so you might have some good luck on the rails<br>forums and mailing lists.<br></blockquote></div><br>