I am having problems using cucumber and webrat to authlogic-openid authentication in rails application. After Ryan Bates excellent screencast I was able to install authlogic with the open-id plugin. OpenID works when I log in using a browser, but so far I have not been able to test the application using cucumber and webrat.
I tried using rots as a dummy open id server. Again, this works when I try to use it in a browser, but webrat will not correctly follow the get / post redirection required for authentication with a fictitious open server open.
This answer to SO suggests canceling the authentication method to always return a successful login, but this approach is not like the integration testing the application.
What is the best way to functionally test authlogic-open-id? Should I even bother? Should I test the actions when the user has already registered and assume that OpenID will work?
source
share