How to login in request specs without sending requests #243
Answered
by
janko
Samuelodan
asked this question in
Q&A
-
Hi there, Any help will be appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
janko
Nov 19, 2023
Replies: 1 comment 3 replies
-
Why do you want to login without making a login request? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rodauth doesn't offer way to mocking login session in tests, similar to
Clearance::Backdoor
or Warden'son_next_request
. In system tests I can imagine some overhead, though I would like to get some numbers from a real world app on what percentage of the test suite runtime is spent logging in, to motivate adding such functionality.In requests specs I can imagine minimal overhead from actually hitting the login endpoint. Again, if you have some numbers on what amount of time goes to login compared to rest of the tests, that would be useful.