I have just begun with testing Devise. I am unable to understand of why i am getting this error ::
Failure/Error: subject.current_user.should_not be_nil Ar
uncaught throw :warden happens when authenticate_user! fails.
uncaught throw :warden
authenticate_user!
Figure out why your the user's authentication is a failing, and you'll have solved your problem.