Skip to content

Instantly share code, notes, and snippets.

@jeffrydegrande
Created September 12, 2009 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffrydegrande/185998 to your computer and use it in GitHub Desktop.
Save jeffrydegrande/185998 to your computer and use it in GitHub Desktop.
module AuthenticatedTestHelper
def login_as!(user=Factory(:account))
activate_authlogic
AccountSession.create(user)
user
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment