Unit test with Authlogic on Rails 3
        Posted  
        
            by Puru puru rin..
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Puru puru rin..
        
        
        
        Published on 2010-06-08T16:29:22Z
        Indexed on 
            2010/06/08
            16:32 UTC
        
        
        Read the original article
        Hit count: 450
        
Hello,
I would like to write some unit test with a logged user using Authlogic. To start right, I used some code hosted in http://github.com/binarylogic/authlogic_example. But I get an error after rake test, because of "test_helper.rb" and the following class:
class ActionController::TestCase
  setup :activate_authlogic
end
Here is my error:
NameError: undefined local variable or method `activate_authlogic' for
I think this Authlogic example is mapped over Rails 2; maybe it's a little bit different on Rails 3. Is there an other example where I can take example about unit test?
Many thanks.
© Stack Overflow or respective owner