Reputation: 2141
Is there a way to test that a Devise user was created with the correct password in RSpec?
I have a feature spec for creating a user, and have tried testing that created_user.encrypted_password eq User.new(password: same_as_created_user).encrypted_password
but the passwords generated do not match.
Upvotes: 3
Views: 762