Created
September 2, 2012 20:19
-
-
Save lucassmagal/3604190 to your computer and use it in GitHub Desktop.
Fabricate user
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
class Usuario < ActiveRecord::Base | |
# Include default devise modules. Others available are: | |
# :token_authenticatable, :confirmable, | |
# :lockable, :timeoutable and :omniauthable | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable | |
# Setup accessible (or protected) attributes for your model | |
attr_accessible :nome, :email, :password, :password_confirmation, :remember_me | |
end |
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
Fabricator(:usuario) do | |
nome { Faker::Name.name } | |
email { Faker::Internet.email } | |
password '123123' | |
password_confirmation '123123' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment