devise
devise copied to clipboard
Controller test in apps with declarative_authorization
We use both devise and devlarive_authorization in our app. And we have huge problem with controller tests. Both of gems offers special test helpers:
- sign_in for devise
- get_with, post_with etc. for declarative_authorization
The problem is they don't work correct together. If we sign is user via devise sign_in helper and after that we make request via declarative_authorization helpers than user is not logged in.
Sorry, but you will have to investigate this on your own. Other issues/features for Devise have higher priority than handling this special case. If you need any help, please let me know.