[rspec-users] URL helpers in model specs
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...
More information about the rspec-users