There should be a factory for this too. Password should be generated randomly but in the factory you can add and additional attribute like clear_password to use it through tests.