I'm having a problem with fixtures for BCrypt password:
my User model is both setup with has_secure_password and validates_presence_of :password.
The point is that BCrypt uses password and password_confirmation but in the schema there is only the password_digest field.
The fixture is complaining that the password field does not exists.
How can I avoid this?
Thank you
I solved this problem with setup function on model test. We can define objects in setup and use it through the test file.