title: uncaught throw :warden in Devise Testing
body: <p>I have just begun with testing Devise. I am unable to understand of why i am getting this error :: </p>
  
  <pre><code>Failure/Error: subject.current_user.should_not be_nil
   ArgumentError:
     uncaught throw :warden
  </code></pre>
  
  <p>This is the code in my spec :: </p>
  
  <pre><code>    require "spec_helper"
  
      describe Devise::PasswordsController do
        include Devise::TestHelpers
          before(:each) do
              user = Factory(:user)
              @request.env["devise.mapping"] = Devise.mappings[:user]
              sign_in user
          end
          it "should have a current user" do
                  subject.current_user.should_not be_nil
          end
      end
  </code></pre>
  
  <p>Has anyone gotten a fix around this issue ? I know there are issues on <code>github</code> but in their case <code>include Devise::TestHelpers</code> was not present unlike in my case.</p>
  
  <p>I am getting an error on this line :: <code>subject.current_user.should_not be_nil</code></p>