Created
November 14, 2009 16:24
-
-
Save JackDanger/234610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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