Yes I have checked the wiki and searched this group for each of my
problems prior to submitting questions. I had read that article as
I've now read everything related to testing. Given that article is
about RSpec Devise 1.1, and Rails 3, none of which I am using in this
project, I did not expect it to have any useful information. However,
upon reading it and looking over the code again I realized something.
In the article it mentions the "devise.mapping" env variable in the
request. Some of my controller tests were still using the archaic
setup function that look like this:
def setup
@controller = SomeController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
I realized that setting the request variable in such a manner might
screw up Devise as it would be lacking the correct env variables. So
I removed the setup method entirely and retested and this problem was
resolved. So that's something for people to be aware of when
migrating old codebases to devise.
On Feb 13, 7:10 am, José Valim <
jose.va...@gmail.com> wrote:
> Have you checked the wiki? Particularly this article?
>
>
https://github.com/plataformatec/devise/wiki/How-To:-Controllers-and-...)