excid3 / betterminitest.com

Learn how to write better Minitest tests
https://betterminitest.com
21 stars 1 forks source link

[Example] Fixtures with Blind Indexes #10

Open tbcooney opened 3 years ago

tbcooney commented 3 years ago
one:
  email_ciphertext: <%= User.generate_email_ciphertext("secret@example.com").inspect %>
  email_bidx: <%= User.generate_email_bidx("secret@example.com").inspect %>
  first_name_ciphertext: <%= User.generate_first_name_ciphertext("John").inspect %>
  last_name_ciphertext: <%= User.generate_last_name_ciphertext("Doe").inspect %>
  encrypted_password: <%= Devise::Encryptor.digest(User, 'password') %>
  time_zone: "America/Chicago"

  # If using Devise::Confirmable
  confirmed_at: <%= Time.current %>