devise icon indicating copy to clipboard operation
devise copied to clipboard

Controller test in apps with declarative_authorization

Open kubi-dev opened this issue 15 years ago • 1 comments

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.

kubi-dev avatar Mar 28 '11 18:03 kubi-dev

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.

josevalim avatar Mar 28 '11 18:03 josevalim