Cucumberにauthlogicのテストヘルパーを使用しようとしましたが、activate_authlogicを呼び出しています。Cucumberでauthlogicのcurrent_userをテストするにはどうすればよいですか?
私たちのapplication_controllerには、current_user_sessionメソッドがあります。
デバッガの中間層に入ると、controller
はAuthlogic::TestCase::MockController
を返します。
しかし、controller.current_user_sessionを呼び出すとき。
評価中にエラーが発生しましたnil.current_user_session
。
このモックは突然どのようにゼロになりますか?
このモックコントローラは、アプリケーションコントローラのコードを知っていますか?
この[質問](http://stackoverflow.com/questions/1234920/integration-testing-with-authlogic)を参照してください。 – Waseem