NoamB/sorcery-example-app — Issue #3: undefined method `auto_login' for nil:NilClass
Author: usharf
Created: 2011-10-13 21:02:23+00:00
State: open

Guess I must be missing something here. I have a simple integration spec from which I'm trying to login a user.

```ruby
let(:user) { Factory(:user, :email => "user@example.com", :password => "secret", :password_confirmation => "secret" ) }
```

and then in:

```ruby
background do
login_user(user)
....
end
```

when the spec is run:

```bash
Failure/Error: login_user(user)
NoMethodError:
undefined method `auto_login' for nil:NilClass
# ./spec/requests/deleting_entries_spec.rb:15:in `block (2 levels) in '
```