title: Omniauth Cucumber Testing - Routing Error
body: <p>I am trying to test my Facebook login button in Cucumber. I am using Omniauth.</p>
  
  <p>Here is what I have in <code>/features/support/env.rb</code></p>
  
  <pre><code>Before do
    OmniAuth.config.test_mode = true
    OmniAuth.config.add_mock(:facebook, {
      provider: 'facebook',
      uid: '1259910065',
      info: {
        name: 'Test Name',
        email: 'test@example.com'
      }
    })
  end
  
  After do
    OmniAuth.config.test_mode = false
  end
  </code></pre>
  
  <p>However, when I try to access <code>/auth/facebook</code> in the tests, I get:</p>
  
  <pre><code>No route matches [GET] "/auth/facebook" (ActionController::RoutingError)
  </code></pre>
  
  <p>Update:</p>
  
  <p>I also tried to <code>require 'omniauth'</code> in the env.rb file, but I'm not sure that's necessary.</p>