Routes in Modules
If you're trying to rspec routes in modules, add:
# spec_helper.rb
config.include Rails.application.routes.url_helpers
to your spec helper, and:
# test.rb
routes.default_url_options = { :host => 'test.host' }
to your test.rb environment. :)
Written by Alex Gibson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#