Mock :crypt.crypt/2 to pass LegacyAuthenticationPlugTest on Mac OS
- I didn't get the point of making
send(self(), :reset_password)
in the mock and then receiving it in asserts. Furthermore, this assert failed on my computer (No message matching :reset_password after 0ms
). - As @feld said,
crypt()
on macOS only supports DES. So I added:crypt/crypt/2
to mocks to pass the test.
Edited by Sergey Suprunenko