How to check openid on rails with cucumber

How to check openid on rails with cucumber. Does anyone have a real example? For example, using Fakeweb. Thanks x

+3
source share
2 answers

I assume that you do not want to test with a real OpenID provider, so you probably need to create some kind of fake. Or maybe drown out the OpenID mechanism so that you can choose the execution path in your code so that it returns different ready-made answers for different tests.

In terms of using Cucumber with Rails, Webrat is considered the standard way to fake a request through the web stack - it is quite powerful and gives good readable definitions of steps. See these links for more information:

+1
source

I found this blog post explaining how to use Ruby OpenID Test Server (ROTS) as a local open id server to perform integration tests against.

- OpenID RSpec/Cucumber open_id_authentication

0

Source: https://habr.com/ru/post/1730390/


All Articles