title: RSpec "No routes matches"
body: <p>I'm trying to write a request spec for a custom action on one of my controllers.</p>
  
  <p>My routes.rb is like this:</p>
  
  <pre><code>resources :cars do
    member do
      get :search
    end
  end
  </code></pre>
  
  <p>My cars_controller.rb is like this:</p>
  
  <pre><code>class CarsController &lt; ApplicationController
    def search
      # pending 
    end
  end
  </code></pre>
  
  <p>My controller_cars_spec.rb is like this:</p>
  
  <pre><code>describe CarsController do
    describe 'Search' do
      it 'should call the model method that perform search by brand' do
        get :search
      end  
    end
  end
  </code></pre>
  
  <p>The rake routes says:</p>
  
  <pre><code>search_car GET    /cars/:id/search(.:format) {:action=&gt;"search", :controller=&gt;"cars"}
  </code></pre>
  
  <p>and autotest say:</p>
  
  <pre><code>Failures:
  1) CarsController Search should call the model method that perform search by brand
     Failure/Error: get :search
     ActionController::RoutingError:
       No route matches {:controller=&gt;"cars", :action=&gt;"search"}
     # ./spec/controllers/cars_controller_spec.rb:19:in `block (3 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>What's the problem? I can't solve this failure...</p>