[rspec-users] URL helpers in model specs

Nick nick at deadorange.com
Tue Oct 11 23:27:00 EDT 2011


Hey Matt. Thanks for replying. I deleted that gist by accident earlier 
today. Despite that, the problem's solved by 
including Rails.application.routes.url_helpers in my model.

My Rails console sessions include Rails.application.routes.url_helpers 
automatically, which is why it worked in IRB but not when run with RSpec.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20111011/1356e109/attachment.html>


More information about the rspec-users mailing list