title: Rspec no route matches
body: <p>I'm getting the following error with rspec:</p>
  
  <pre><code>1) LandingController landing#index returns http success
   Failure/Error: get :index
   ActionController::RoutingError:
     No route matches {:controller=&gt;"landing"}
   # ./spec/controllers/landing_controller_spec.rb:7:in `block (3 levels) in &lt;top (required)&gt;'
  </code></pre>
  
  <p>This is the test</p>
  
  <pre><code>require 'spec_helper'
  
  describe LandingController do
  
    describe "landing#index" do
      it "returns http success" do
        get :index
        response.should be_success
      end
    end
  
  end
  </code></pre>
  
  <p>I mounted it as <code>root :to =&gt; 'landing#index'</code>. All other tests are passing, only this one is failing, can someone help me to understand why?</p>
  
  <p>For completeness this is the output from <code>rake routes</code></p>
  
  <pre><code>root                         /                                      landing#index
  auth_google_oauth2_callback  /auth/google_oauth2/callback(.:format) sessions#create
                      signout  /signout(.:format)                     sessions#destroy
                    dashboard  /dashboard(.:format)                   dashboard#index
  </code></pre>