Ok I was writing some tests and I realized I could not possibly check the format of a password in rails in my model test. By format I mean a regex verifying that the password is at least 6 characters long etc. The reason I cannot do it is because I only store the secured hash of the password. Is this normal in most rails app? And is my only solution to check the password in my Integration tests?
Share
In the model you can have
Should work.