RSpec Controller Tests and Rodauth #240
Replies: 4 comments
-
Using the Googler, I found mention of adding session values, but this does not seem to work. |
Beta Was this translation helpful? Give feedback.
-
Not sure what an controller test would represent in this case. Rodauth is build on Roda, which doesn't have the equivalent of a "controller". In general, it's best to test applications using Rodauth with a tool such as capybara. See Rodauth's test suite for examples. |
Beta Was this translation helpful? Give feedback.
-
The answer above does indeed work. I will post an example in a moment. An account must also be verified. |
Beta Was this translation helpful? Give feedback.
-
I created an
and then in the RSpec controller spec, wrote this:
|
Beta Was this translation helpful? Give feedback.
-
What is the proper technique to login a user to run an RSpec controller spec?
Beta Was this translation helpful? Give feedback.
All reactions