[rspec-users] Stub ActionController::Base#params

Jed Hurt jed.hurt at gmail.com
Tue Oct 16 02:12:55 EDT 2007


Has anyone had any success stubbing ActionController::Base#params? The
following is not intercepting calls to params[:foo] in my controllers:

ActionController::Base.stub!(:params).and_return(:foo => 'bar')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071016/282a76ba/attachment.html 


More information about the rspec-users mailing list