Named routes should work if you put the following in rspec_helper.rb:
RSpec.configure do |config|
config.include Rails.application.routes.url_helpers
...
end
Is that how you set it up?
More Related Contents:
- Error launching Rails server: undefined method ‘configure’
- Single table inheritance and where to use it in Rails
- Is there a way to get a collection of all the Models in your Rails app?
- No route matches “/users/sign_out” devise rails 3
- difference between collection route and member route in ruby on rails?
- Disable ActiveRecord for Rails 4
- Creating a many to many relationship in Rails
- Rails model without database
- Paperclip exception : Paperclip::AdapterRegistry::NoHandlerError
- ActionController::InvalidAuthenticityToken
- Using Rails serialize to save hash to database
- Rails 3: Get Random Record
- Setting session timeout in Rails 3
- Rails 4 link_to Destroy not working in Getting Started tutorial
- rails 3.1.0 ActionView::Template::Error (application.css isn’t precompiled)
- Heroku upload-Precompiling assets failed
- In Ruby on Rails, what’s the difference between DateTime, Timestamp, Time and Date?
- What tools do you recommend to profile Rails apps? [closed]
- Rails select helper – Default selected value, how?
- Can I get the name of the current controller in the view?
- Rails 4 nested attributes and has_many :through associaton in a form
- How do I use RVM and create globally available gems?
- Undefined Method attr_accessible
- Visit method not found in my rspec
- Can I write PostgreSQL functions on Ruby on Rails?
- Difference between Render and Render Partial and Yield
- How to implement Active Record inheritance in Ruby on Rails?
- Setup sunspot solr with rails in production environment
- unable to install pg gem
- ActionController::ParameterMissing (param is missing or the value is empty: film):