uncaught throw :warden in Devise Testing
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 选择语言 中文(简体) 日语 英语 中文(繁体) 由 翻译 强力驱动 问题: 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 ArgumentError : uncaught throw : warden This is the code in my spec :: 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 .