Topic: Devise + declarative_authorization - problem with controllers tests
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 this request.
Someone was trying to solve that?