Tuesday, November 17, 2009

Authlogic login in rails functional tests


# Place this at the top of test/test_helper.rb
require "authlogic/test_case"

# Activating authlogic in before each test
def setup
activate_authlogic
UserSession.create(Factory(:teacher))
end

No comments: