Created
August 24, 2012 16:46
-
-
Save alexdesi/3452770 to your computer and use it in GitHub Desktop.
How to use Factory Girl from the console in Rails 3
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
require 'factory_girl' | |
FactoryGirl.find_definitions | |
u = Factory.create(:user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment