Just for the records, for whoever might end up on this thread.
I found out what the problem was, it has nothing to do with active
The cause of this problem was a missing fixture in my tests.
More specifically. I use the plug in act_as_authenticated, and
the first line in my tests is usually login_as(:peter), that
sets the user as logged in.
The method login_as worked fine, and the @current_user instance
variable was set in my controllers, but the instances of an
(i.e. has_and_belongs_to_many :roles) where not made and not set
in the specific user instance, this caused some conditions to fail and
resulted in a redirect.
Moral of the story: I needed to add an extra fixture to my functional
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.