Created
December 6, 2013 21:13
-
-
Save gschorkopf/7832177 to your computer and use it in GitHub Desktop.
Sample FactoryGirl admin/user creation
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
FactoryGirl.define do | |
factory :user do | |
first_name "Geoff" | |
last_name "S" | |
role 'standard' | |
factory :admin do | |
role 'admin' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment