で失敗し、次の失敗キュウリのシナリオを持っている:テストでログインし、私は、ユーザー認証のための工夫を使用してい工夫とキュウリ
Scenario: Log in to the system
Given a user called "test" with a password of "secret"
And I am not logged in # Just visits /users/sign_out
When I go to the log in page
And I fill in "user_username" with "test"
And I fill in "user_password" with "secret"
And I press "Sign in"
Then I should see "Signed in successfully."
私は「末端に「次に私のページを表示する」を固執した場合mは空白のログを含むページを表示しました。
次(非常に類似した)テストは動作します:
Scenario: Fail to log in with invalid credentials
Given a user called "test" with a password of "secret"
And I am not logged in
When I go to the log in page
And I fill in "user_username" with "test"
And I fill in "user_password" with "invalid password"
And I press "Sign in"
Then I should see "Invalid email or password."
...ので、私は、ログはキュウリは(FWIWログには、次のされていない検証が成功した後、リダイレクトを行うことを想定していますすべて私がそれをブラウザで手動で行うときに働く)...誰も私にテストをパスする方法を教えてもらえますか?
おかげで、 アッシュ
EDIT:「(。成功裏に署名」)それは?期待#has_content「で失敗している最後のステップだエラー(...エヘンtrueを返すために、偽のです」。 ..それ以前に言及していたはずです!)
そして確かに、ldap_authenticatableページに問題があります:https://github.com/cschiewek/devise_ldap_authenticatable/issues#issue/3 – Ash
ifスタックオーバーフローポイントで私に感謝する方法がありました:-) – pjammer
あなたはあなたが言ったことすべてを+1しました。他の方法を考えることはできません。特典ポイント!助けてくれてありがとう! – Ash