Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cupakromer/8786449 to your computer and use it in GitHub Desktop.
Save cupakromer/8786449 to your computer and use it in GitHub Desktop.
FactoryGirl.define do
factory :user do
email 'myuser@test.com'
password 'this IS a BAd passowrds1234!!'
trait :confirmed do
confirmed_at { Time.now }
confirmation_token nil
end
factory :client do
role :client
confirmed
end
factory :admin do
role :admin
confirmed
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment