[rspec-users] how to mock url_for ?

Eugen Ciur lists at ruby-forum.com
Wed Oct 27 10:40:18 EDT 2010


I am testing a model A, which calls inside url_for method; rspec
complains that url_for is undefined (which I suppose is because url_for
is called outside view's context)

How can I mock url_for rails method?

Please help,
Thank you.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list