helper.stub! .... the OP is testing a helper method.

On Tue, Apr 14, 2009 at 9:04 AM, Fernando Perez <[email protected]>wrote:

> Try with that:
>
> controller.stub!(:params).and_return({:controller =>
> 'your_controller_name'})
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
// anything worth taking seriously is worth making fun of
// http://blog.devcaffeine.com/
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to