plataformatec/devise — Issue #1507: ArgumentError:  uncaught throw :warden
Author: lporras
Created: 2011-12-12 18:07:23+00:00
State: open

I'm trying to test this:

```ruby
class PagesController < ApplicationController
before_filter :authenticate_user!

def landing
end
...
end
```

```ruby
describe PagesController do
include Devise::TestHelpers
...
describe "GET#landing when no user sign in" do

it "should redirect to users/sign_in" do
get :landing
response.should redirect_to new_user_session_path
end

end
end
```
but I'm getting this error:

ArgumentError:
uncaught throw :warden