title: How do I test the Devise registration process?
body: <p>I recently added the Devise engine to a project with an existing authentication system (from the Rails Tutorial).</p>
  
  <p>Before I added Devise, my UsersController handled all user registration facilities new, create, edit, destroy and I had a lot of rspec tests written for them. Of course now that registration is handled by Devise, I've had to remove those tests from users_controller_spec.rb.</p>
  
  <p>Where can I put those tests to ensure that the Devise registration process is working correctly?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Ok I believe I've made some progress with this since I posted the question.</p>
  
  <p>First I overrided the Devise registrations controller by making my own RegistrationsController in /app/controllers/registrations_controller.rb.</p>
  
  <pre><code>class RegistrationsController &lt; Devise::RegistrationsController
  
  end
  </code></pre>
  
  <p>Then I tell Devise to use this controller for registrations in my /config/routes.rb file:</p>
  
  <pre><code>devise_for :users, :controllers =&gt; { :registrations =&gt; "registrations" }
  </code></pre>
  
  <p>Now all I need to do it make my tests in /spec/controllers/registrations_controller_spec.rb work.</p>
  
  <p>Am I on the right track?</p>