<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:12pt">Hi, all,<br><br>I'm trying to write a spec for a controller method that starts out:<br><br><br> def download<br> @orders = Order.find( params[:ids] )<br> ...<br><br><span>and started writing a spec that set params[:ids] to a mock. I was surprised to discover that controller specs (at least in RSpec 1.0.8) don't offer the use of the params object (per <a target="_blank" href="http://rspec.rubyforge.org/documentation/rails/writing/controllers.html">http://rspec.rubyforge.org/documentation/rails/writing/controllers.html</a>), though assigns, flash, and session are available. Maybe I'm missing something, but it seems to me that it would be helpful if controller specs could use params also....</span><br><br><br>Al</div><br>
<hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping">
Find them fast with Yahoo! Search.</a></body></html>