Skip to content

Instantly share code, notes, and snippets.

@maasha
Created Apr 5, 2013
Embed
What would you like to do?
FactoryGirl.define do
factory :user do
sequence(:name) { |n| "Person #{n}" }
sequence(:email) { |n| "person_#{n}@example.com"}
password "foobar"
password_confirmation "foobar"
factory :admin do
admin true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment