Oct 01
Spent a little time scratching my head on this week. @params is reserved in Rspec controller tests apparently much like Rails. @params will contain extra keys like “controller” and “action” which if you try and assert against will fail of you do something like this:
<pre>
@params = {:id => ‘niceid’}
…
Model.expects(:method).with(@params)
</pre>
