Skip to content

Instantly share code, notes, and snippets.

@JackDanger
Created November 14, 2009 16:24
Show Gist options
  • Select an option

  • Save JackDanger/234610 to your computer and use it in GitHub Desktop.

Select an option

Save JackDanger/234610 to your computer and use it in GitHub Desktop.
# If your factories are automatically signing themselves in:
Factory.define :user do |f|
# kill the session automatically created by AuthLogic
f.after_create do |u|
(s = Session.find(u)) && s.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment