Guest User

Untitled

a guest
May 14th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.31 KB | None | 0 0
  1. # By using the symbol ':user', we get Factory Girl to simulate the User model.
  2. FactoryGirl.define :user do |user|
  3.   user.name                         "Michael Hartl"
  4.   user.email                        "mhartl@example.com"
  5.   user.password                     "foobar"
  6.   user.password_confirmation        "foobar"
  7. end
Add Comment
Please, Sign In to add comment