Skip to content

Instantly share code, notes, and snippets.

@progapandist
Forked from clarkbw/users.yml
Created January 6, 2018 21:55
Show Gist options
  • Save progapandist/c58b32e20a3fb5e96a86ece9f083a7a2 to your computer and use it in GitHub Desktop.
Save progapandist/c58b32e20a3fb5e96a86ece9f083a7a2 to your computer and use it in GitHub Desktop.
Devise user fixture for testing rails with users. confirm* items are only required if you've set :confirmable in your model.
bryan:
email: clarkbw@example.com
encrypted_password: <%= User.new.send(:password_digest, '1234567890') %>
confirmed_at: <%= Time.zone.now - 1.hour %>
confirmation_sent_at: <%= Time.zone.now - 2.hours %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment